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
            • URL 301 Re-direct
              Trymybest
              Trymybest
              1
              4
              65

            • Robots.txt Syntax for Dynamic URLs
              btreloar
              btreloar
              0
              5
              369

            • Trackback URLs & temporary re-directs
              CraigBradford
              CraigBradford
              0
              2
              80

            • Should I make a new URL just so it can include a target keyword, then 301 redirect the old URL?
              Kurt_Steinbrueck
              Kurt_Steinbrueck
              0
              5
              153

            • How can I make Google Webmaster Tools see the robots.txt file when I am doing a .htacces redirec?
              benjaminspak
              benjaminspak
              0
              4
              1.6k

            • 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

            • Does RogerBot read URL wildcards in robots.txt
              jennita
              jennita
              0
              2
              928

            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