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. Bloking pages in roborts.txt that are under a redirected subdomain

    Bloking pages in roborts.txt that are under a redirected subdomain

    Technical SEO Issues
    3 2 45
    • 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.
    • RaquelSaiz
      RaquelSaiz last edited by

      Hi Everyone,

      I have a lot of Marketo landing pages that I don't want to show in SERP. Adding the noindex meta tag for each page will be too much, I have thousands of pages.

      Blocking it in roborts.txt could have been an option, BUT, the subdomain homepage is redirected to my main domain (with a 302) so I may confuse search engines ( should they follow the redirect or should they block)

      marketo.mydomain.com is redirected to www.mydomain.com

      disallow: / (I think this will be confusing with the redirect)

      I don't have folders, all pages are under the subdomain, so I can't block folders in Robots.txt also

      Would anyone had this scenario or any suggestions?

      I appreciate your thoughts here.

      Thank you

      Rachel

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

        Under usual circumstances, Google won't index redirecting addresses which it considers to be a shallow form of 'doorway' page (Google doesn't like to rank those). If I am reading your post right, no pages on the redirected sub-domain can be visited as they all now redirect. Google should start dropping those old URLs from its index automatically. It's important to note that you should be using 301s to eventually de-index the old URLs. If you're using 302s then you're telling Google that the old pages are only being redirected temporarily and they will return (which could mess with indexation)

        If I am reading your post wrong and some pages are still live on the old subdomain and are not redirecting, and you want Google to redirect most addresses but some are staying (for whatever reason) and you still want to de-index those specific ones, Meta no-index (sorry) really is your best bet! Robots.txt tells Google not to crawl a page but it doesn't tell Google not to index a URL if external metrics (inbound links) are strong enough. Both are 'directives' and Google is forced to obey neither

        I think from what you are saying, I'd just leave the redirects and let Google do its work. Make sure they're 301s, though. You're right that Robots.txt might end up confusing things. Robots.txt can also sometimes 'kill' the SEO authority of a page. If you did that for all the redirecting pages, no equity would flow through your 301s (hazardous)

        RaquelSaiz 1 Reply Last reply Reply Quote 1
        • RaquelSaiz
          RaquelSaiz @effectdigital last edited by

          Thank you so much for you answer!

          the home page in the subdomain is redirected but none of the actual pages in the subdomain are, and because there are so many of them, it would be easier to block them in robots.txt, even if there is small change that Google will still index them. But because the home page is redirected, I don't want to confuse Google with a Disallow: /

          Could I do Disallow: / and then Allow: /homepage.html

          1 Reply Last reply Reply Quote 0
          • 1 / 1
          • First post
            Last post
          • Purchased domain with links - redirect page by page or entire domain?
            ninel_P
            ninel_P
            0
            5
            79

          • Thousands of 404-pages, duplicate content pages, temporary redirect
            posthumus
            posthumus
            0
            4
            262

          • To Subdomain or Not Subdomain?
            AlanMosley
            AlanMosley
            0
            8
            144

          • How do I 301 redirect a number of pages to one page
            AndersS
            AndersS
            0
            5
            404

          • When Is It Good To Redirect Pages on Your Site to Another Page?
            aroach
            aroach
            1
            3
            289

          • Is it better to delete web pages that I don't want anymore or should I 301 redirect all of the pages I delete to the homepage or another live page?
            EGOL
            EGOL
            0
            2
            417

          • 301 redirecting some pages directly, and the rest to a single page
            danrawk
            danrawk
            0
            3
            703

          • Is a 302 redirect the correct redirect from a root URL to a detail page?
            KeriMorgret
            KeriMorgret
            0
            7
            1.8k

          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