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. Intermediate & Advanced SEO
    4. Best way to remove full demo (staging server) website from Google index

    Best way to remove full demo (staging server) website from Google index

    Intermediate & Advanced SEO
    8 5 6.5k
    • 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.
    • iam-sold
      iam-sold last edited by

      I've recently taken over an in-house role at a property auction company, they have a main site on the top-level domain (TLD) and 400+ agency sub domains!

      • company.com
      • agency1.company.com
      • agency2.company.com...

      I recently found that the web development team have a demo domain per site, which is found on a subdomain of the original domain - mirroring the site. The problem is that they have all been found and indexed by Google:

      • demo.company.com
      • demo.agency1.company.com
      • demo.agency2.company.com...

      Obviously this is a problem as it is duplicate content and so on, so my question is... what is the best way to remove the demo domain / sub domains from Google's index?

      We are taking action to add a noindex tag into the header (of all pages) on the individual domains but this isn't going to get it removed any time soon! Or is it?

      I was also going to add a robots.txt file into the root of each domain, just as a precaution! Within this file I had intended to disallow all.

      The final course of action (which I'm holding off in the hope someone comes up with a better solution) is to add each demo domain / sub domain into Google Webmaster and remove the URLs individually.

      Or would it be better to go down the canonical route?

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

        Noindex is your best option, really. It might take weeks, but I don't think any other method is going to be faster. Plus, technically speaking, "noindex" is the proper method for what you want to do - canonical tags or a robots.txt may do the job, but they aren't exactly the right way.

        Good luck!

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

          Solution 1:

          Add robots.txt on all demo domains and block them, or add noindex in their header.

          Solution 2: Verify each domain in webmaster tools and remove it entirely from the link removal section ( I wouldn't recommend this).

          Solution 3:

          If your both domains like agency1.domain.com and demo.agency1.domain.com have same coding and are clone then you should just add canonical url to the agency1.domain.com and canonical will be http://agency.domain.com/ it will work if it will be automatically shown in the demo domain. if it doesn't show up in the demo domain automatically then add the same canonical to the demo domain.

          It will take some time to deindexed from serps, but it will surely work. I've faced the same kind of situation in past.

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

            I'd also recommend putting in an IP restriction for any of the demo sites.

            So that if anyone visits the demo sites from a non-whitelisted IP address, then you can display an error message, or simply redirect them over to the live site.

            That will likely have the search results quickly removed from the search engine.

            Hope this helps!

            -- Jeff

            iam-sold 1 Reply Last reply Reply Quote 1
            • iam-sold
              iam-sold @customerparadigm.com last edited by

              Good advice but an IP restriction for the demo sites won't be possible on this occasion as our router throws out a range of different IP addresses and we occasionally need the sites to be viewed externally! Any other suggestions to help?

              1 Reply Last reply Reply Quote 0
              • iam-sold
                iam-sold @hammadrafique last edited by

                Out of curiosity, why wouldn't you recommend solution 2?

                You mentioned that you faced a similar kind of situation in the past, how did that work out? Which of the 3 solutions (or all) did you opt for?

                hammadrafique 1 Reply Last reply Reply Quote 0
                • hammadrafique
                  hammadrafique @iam-sold last edited by

                  If you've enough time to verify each subdomain in WMT and also removing 400+ domains one by one, then you can go for solution 2. You can't remove subdomain from verified WMT account of main domain, that's why you need to verify each domain.

                  Adding canonical is a better option, it wouldn't remove all of the demo domains from Google's index rapidly, you have to wait for few months, but you'll be on the safe side.

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

                    Why couldn't I just put a password on the staging site, and let Google sort out the rest? Just playing devil's advocate.

                    1 Reply Last reply Reply Quote 0
                    • 1 / 1
                    • First post
                      Last post
                    • Best way to link to 1000 city landing pages from index page in a way that google follows/crawls these links (without building country pages)?
                      lcourse
                      lcourse
                      0
                      7
                      54

                    • Website dropped out from Google index
                      CleverPhD
                      CleverPhD
                      0
                      7
                      404

                    • Google is not indexing an updated website
                      FWC_SEO
                      FWC_SEO
                      0
                      6
                      198

                    • Google indexed wrong pages of my website.
                      DennisSeymour
                      DennisSeymour
                      0
                      4
                      915

                    • Whats the best way to remove search indexed pages on magento?
                      bjs2010
                      bjs2010
                      0
                      6
                      2.2k

                    • The best way to preserve website back links / authority while removing posts
                      rdixon
                      rdixon
                      0
                      5
                      303

                    • Website is not getting indexed in Google! Not sure why?
                      zigojacko
                      zigojacko
                      0
                      3
                      629

                    • How to remove an entire subdomain from the Google index with URL removal tool?
                      Ocularis
                      Ocularis
                      0
                      3
                      7.6k

                    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