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. Technical SEO Issues
    4. How can I make it so that robots.txt is not ignored due to a URL re-direct?

    How can I make it so that robots.txt is not ignored due to a URL re-direct?

    Technical SEO Issues
    4 3 56
    • 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.
    • rodelmo4
      rodelmo4 last edited by

      Recently a site moved from blog.site.com to site.com/blog with an instruction like this one:

      /etc/httpd/conf.d/site_com.conf:94: ProxyPass /blog http://blog.site.com
      /etc/httpd/conf.d/site_com.conf:95: ProxyPassReverse /blog http://blog.site.com

      It's a Wordpress.org blog that was set as a subdomain, and now is being redirected to look like a directory. That said, the robots.txt file seems to be ignored by Google bot. There is a Disallow: /tag/ on that file to avoid "duplicate content" on the site. I have tried this before with other Wordpress subdomains and works like a charm, except for this time, in which the blog is rendered as a subdirectory. Any ideas why? Thanks!

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

        Hi Rocio,

        Have you tried YOAST SEO plugin? It has an option to ad  to the tags.
        That's the easiest way I'd go for.

        Best Luck.
        GR.

        rodelmo4 1 Reply Last reply Reply Quote 1
        • JordanLowry
          JordanLowry last edited by

          Have you thought about adding rel canonicals by chance? Also, how do you know the robots.txt is being ignored are the page showing up in search results? If so maybe the syntax is incorrect in your robots.txt file. Check out robotstxt.org

          1 Reply Last reply Reply Quote 1
          • rodelmo4
            rodelmo4 @GastonRiera last edited by

            Hi there,

            No, haven't tried it yet, but we'll give it a shot. Thanks!

            1 Reply Last reply Reply Quote 0
            • 1 / 1
            • First post
              Last post
            • Robots.txt Syntax for Dynamic URLs
              btreloar
              btreloar
              0
              5
              369

            • Can I Block https URLs using Host directive in robots.txt?
              LoganRay
              LoganRay
              0
              4
              760

            • Exclude root url in robots.txt ?
              mikehenze
              mikehenze
              0
              5
              122

            • Blocked URL's by robots.txt
              meralucian37
              meralucian37
              0
              7
              398

            • Can I 301 Re-Direct within the same site?
              MikeRoberts
              MikeRoberts
              0
              4
              209

            • Can I Disallow Faceted Nav URLs - Robots.txt
              AlanMosley
              AlanMosley
              0
              5
              914

            • Is it possibly to use anything besides a 302 re-direct when your doing a re-direct for someone to login?
              kateG1298
              kateG1298
              0
              3
              549

            • Robots.txt and robots meta
              TheEspresseo
              TheEspresseo
              0
              5
              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