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. Will a robots.txt disallow apply to a 301ed URL?

    Will a robots.txt disallow apply to a 301ed URL?

    Technical SEO Issues
    3 3 158
    • 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.
    • ecommercebc
      ecommercebc last edited by

      Hi there,

      I have a robots.txt query which I haven't tried before and as we're nearing a big time for sales, I'm hesitant to just roll out to live!

      Say for example, in my robots.txt I disallow the URL 'example1.html'.

      In reality, 'example1.html' 301s/302s to 'example2.html'. Would the robots.txt directive also apply to 'example2.html' (disallow) or as it's a separate URL, would the directive be ignored as it's not valid?

      I have a feeling that as it's a separate URL, the robots disallow directive won't apply. However, just thought I'd sense-check with the community.

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

        I would have to agree, using your example if example1.html is blocked via robots.txt and when you visit it, it 301's to example2.html then it's not blocked by robots. as long as example2.html is discoverable via other indexed pages linking to it.

        Does anyone else in the community have some insight they would like to share?

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

          I would that the example2.html wouldn't be affected by the robots.txt as it can be that a bot will visit example2.html directly without visiting example1.html. Definitely as it could be that the page was picked up after the first time it visited example1.html.

          1 Reply Last reply Reply Quote 1
          • 1 / 1
          • First post
            Last post
          • Disallow wildcard match in Robots.txt
            effectdigital
            effectdigital
            0
            3
            1.0k

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

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

          • Will an XML sitemap override a robots.txt
            mememax
            mememax
            0
            5
            2.4k

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

          • Googlebot does not obey robots.txt disallow
            Cyrus-Shepard
            Cyrus-Shepard
            0
            12
            1.4k

          • Should search pages be disallowed in robots.txt?
            MichaelWeisbaum
            MichaelWeisbaum
            0
            3
            335

          • Should I set up a disallow in the robots.txt for catalog search results?
            AlanBleiweiss
            AlanBleiweiss
            0
            5
            1.7k

          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