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. Dev Site Was Indexed By Google

    Dev Site Was Indexed By Google

    Technical SEO Issues
    5 5 166
    • 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.
    • ntsupply
      ntsupply last edited by

      Two of our dev sites(subdomains) were indexed by Google. They have since been made private once we found the problem. Should we take another step to remove the subdomain through robots.txt or just let it ride out?

      From what I understand, to remove the subdomain from Google we would verify the subdomain on GWT, then give the subdomain it's own robots.txt and disallow everything.

      Any advice is welcome, I just wanted to discuss this before making a decision.

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

        Hey Tyler,

        We would follow the same protocol if in your shoes. Remove any instance of the indexed dev subdomain(s), then create your new robot.txts files for each subdomain and disavow any indexed content/links as an extra step. Also, double check and even resubmit your root domain's XML sitemap so Google can reindex your main content/links as a precautionary measure.

        PS - We develop on a separate server and domain for any new work for our site or any client sites. Doing this allows us to block Google from everything.

        Hope this was helpful! - Patrick

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

          Hi Tyler,

          You definitely don't want to battle yourself for duplicate content. If the current sub-domains have little link juice (in links) to them, I would simply block the domain from being further indexed. If there are a couple pages that are of high value it maybe worth the time to use a 301 redirect to prevent losing any links / juice.

          Using robots.txt or noindex / tags may work, but in my personal experience the easiest and most efficient way to block any indexing is simply use .htaccess / .htpasswrd this will prevent anybody without credentials from even viewing your site effectively blocking all spiders / bots and unwanted snoopers.

          1 Reply Last reply Reply Quote 1
          • KeriMorgret
            KeriMorgret last edited by

            I've had this happen before. In the dev subdomain, I added a robots.txt that excluded everything, verified the subdomain as its own site in GWT, then asked for that site (dev subdomain) to be removed.

            I then went and used a free code monitoring service that checked for code changes of a URL once a day. I set it up to check the live site robots.txt and the robots.txt of all of the dev sites, so I'd know within 24 hours if the developers had tweaked the robots.txt.

            1 Reply Last reply Reply Quote 0
            • customerparadigm.com
              customerparadigm.com last edited by

              We ran into this in the past, and one thing that we (think) happened is that the links to the dev site were sent via email to several gmail accounts.  We think this is how Google then indexed the site, as there were no inbound links posted anywhere.

              I think that the main issue is how it's perceived by the client, and if they are freaking out about it.  In that case, using an access control password to prevent anyone from coming to the site will limit anyone from seeing it.

              The robot.txt file should flush it out, but yes, it takes a little bit of time.

              1 Reply Last reply Reply Quote 0
              • 1 / 1
              • First post
                Last post
              • New SEO manager needs help! Currently only about 15% of our live sitemap (~4 million url e-commerce site) is actually indexed in Google. What are best practices sitemaps for big sites with a lot of changing content?
                Nigel_Carr
                Nigel_Carr
                1
                4
                106

              • Should you use robots.txt for pages within your site which do not have high quality content or are not contributing a great deal so when Google crawls your site the best performing content has a higher chance of being indexed?
                Jacksons_Fencing
                Jacksons_Fencing
                0
                5
                44

              • Removed Subdomain Sites Still in Google Index
                RyanPurkey
                RyanPurkey
                0
                4
                783

              • Anything new if determining how many of a sites pages are in Google's supplemental index vs the main index?
                SEMPassion
                SEMPassion
                0
                4
                390

              • Site removed from Google Index
                StreamlineMetrics
                StreamlineMetrics
                0
                3
                131

              • Why did Google stop indexing my site?
                JillB2013
                JillB2013
                0
                12
                5.3k

              • How do you know what version of your site of Google is in their index?
                trophycentraltrophiesandawards
                trophycentraltrophiesandawards
                0
                3
                309

              • Site being indexed by Google before it has launched
                KeriMorgret
                KeriMorgret
                0
                3
                246

              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