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. Subdomain Robots.txt

    Subdomain Robots.txt

    Technical SEO Issues
    3 2 1.2k
    • 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.
    • JohnECF
      JohnECF last edited by

      If I have a subdomain (a blog) that is having tags and categories indexed when they should not be, because they are creating duplicate content. Can I block them using a robots.txt file? Can I/do I need to have a separate robots file for my subdomain?

      If so, how would I format it? Do I need to specify that it is a subdomain robots file, or will the search engines automatically pick this up?

      Thanks!

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

        if the url is http://blog.website.com

        then the Robots.txt should be accessable threw http://blog.website.com/robots.txt

        I would suggest these steps

        • Verify your blog the Google webmaster tools
        • generate a robots .txt file with Google webmaster tools
        • Upload it to the Subdomain.

        There is another way if you are using Wordpress.

        There is a All in One SEO plugin / Wordpress SEO by Yoast. threw the settings you can specify to add NOINDEX to all Category, tags, author and others. its faster and error free.

        JohnECF 1 Reply Last reply Reply Quote 3
        • JohnECF
          JohnECF @wissamdandan last edited by

          Thanks Wissam. I was thinking this was the way to go, and I appreciate your input.

          I do use the Yoast SEO plugin for Wordpress on another site, but the blog in question is through BlogEngine. I will do what you have suggested.

          Cheers!

          1 Reply Last reply Reply Quote 1
          • 1 / 1
          • First post
            Last post
          • Robots.txt
            MarieHaynes
            MarieHaynes
            0
            8
            115

          • Robots.txt on subdomains
            Whittie
            Whittie
            0
            3
            3.5k

          • Robots.txt
            MichaelC-15022
            MichaelC-15022
            0
            7
            1.0k

          • Robots.txt
            Dan-Lawrence
            Dan-Lawrence
            0
            5
            99

          • Robots.txt
            irvingw
            irvingw
            0
            4
            116

          • Robots.txt
            Ontarioseo
            Ontarioseo
            0
            5
            737

          • Robots.txt
            Entrusteddev
            Entrusteddev
            0
            3
            642

          • 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