The Moz Q&A Forum

    • Forum
    • Questions
    • My Q&A
    • Users
    • Ask the Community

    Welcome to the Q&A Forum

    Browse the forum for helpful insights and fresh discussions about all things SEO.

    1. SEO and Digital Marketing Q&A Forum
    2. Categories
    3. Intermediate & Advanced SEO
    4. Default Robots.txt in WordPress - Should i change it??

    Default Robots.txt in WordPress - Should i change it??

    Intermediate & Advanced SEO
    5 3 9.3k
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as question
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • rootwaysinc
      rootwaysinc last edited by

      I have a WordPress site as using theme Genesis  i am using default robots.txt. that has a line Allow: /wp-admin/admin-ajax.php, is it okay or any problem. Should i change it?

      1 Reply Last reply Reply Quote 0
      • Martijn_Scheijbeler
        Martijn_Scheijbeler last edited by

        Hi Peter,

        Usually I would say it's not enough as the robots.txt is forgeting about excluding the search pages and in most cases you want to make sure the WP core files are not included + tag pages. Take a look at our robots.txt to see what we've included there: http://thenextweb.com/robots.txt then you'll notice we include for example these:

        User-agent: *
        Disallow: ?p=
        Disallow: /wp-includes/
        Disallow: /wp-login.php
        Disallow: /wp-admin/*
        Disallow: /wp-register.php
        Disallow: /wp-content/themes/icetea/includes/*
        Disallow: /tag/
        Disallow: ?s=
        Disallow: /search/*

        Other cases in our robots.txt are very specifically in there because of our site and may not apply to others.

        1 Reply Last reply Reply Quote 2
        • Mobilio
          Mobilio last edited by

          In addition of Martijn here is mine robots.txt:

          User-agent: *
          Disallow:

          Sitemap: http://peter.nikolow.me/sitemap_index.xml

          But using Yoast - categories, tags, most of archives and other generated pages are disabled for indexing.

          rootwaysinc 1 Reply Last reply Reply Quote 2
          • rootwaysinc
            rootwaysinc @Mobilio last edited by

            Thank you both for your response.

            @Martijn your robots.txt is really a nice example but for my new site is it good practice to block this areas??

            @Peter To be a safe side I was using the same robots.txt...

            Martijn_Scheijbeler 1 Reply Last reply Reply Quote 0
            • Martijn_Scheijbeler
              Martijn_Scheijbeler @rootwaysinc last edited by

              Yes, we're a news site as well and in our case we want to make sure the low quality pages on TNW aren't indexed.

              1 Reply Last reply Reply Quote 1
              • 1 / 1
              • First post
                Last post
              • Is robots met tag a more reliable than robots.txt at preventing indexing by Google?
                Bobbi_Tschumper
                Bobbi_Tschumper
                1
                7
                3.0k

              • Robots.txt advice
                Martijn_Scheijbeler
                Martijn_Scheijbeler
                0
                3
                105

              • Robots.txt
                Travis_Bailey
                Travis_Bailey
                0
                4
                107

              • Robots.txt help
                KeriMorgret
                KeriMorgret
                0
                4
                85

              • Robots.txt
                TomRayner
                TomRayner
                0
                5
                137

              • Robot.txt help
                evolvingSEO
                evolvingSEO
                0
                23
                203

              • Should I change wordpress urls?
                ak1lz
                ak1lz
                0
                3
                275

              • Category Pages - Canonical, Robots.txt, Changing Page Attributes
                Function5
                Function5
                0
                9
                1.1k

              Get started with Moz Pro!

              Unlock the power of advanced SEO tools and data-driven insights.

              Start my free trial
              Products
              • Moz Pro
              • Moz Local
              • Moz API
              • Moz Data
              • STAT
              • Product Updates
              Moz Solutions
              • SMB Solutions
              • Agency Solutions
              • Enterprise Solutions
              • Digital Marketers
              Free SEO Tools
              • Domain Authority Checker
              • Link Explorer
              • Keyword Explorer
              • Competitive Research
              • Brand Authority Checker
              • Local Citation Checker
              • MozBar Extension
              • MozCast
              Resources
              • Blog
              • SEO Learning Center
              • Help Hub
              • Beginner's Guide to SEO
              • How-to Guides
              • Moz Academy
              • API Docs
              About Moz
              • About
              • Team
              • Careers
              • Contact
              Why Moz
              • Case Studies
              • Testimonials
              Get Involved
              • Become an Affiliate
              • MozCon
              • Webinars
              • Practical Marketer Series
              • MozPod
              Connect with us

              Contact the Help team

              Join our newsletter
              Moz logo
              © 2021 - 2026 SEOMoz, Inc., a Ziff Davis company. All rights reserved. Moz is a registered trademark of SEOMoz, Inc.
              • Accessibility
              • Terms of Use
              • Privacy