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. Development site accidentally got indexed and now appears in SERPs. How to fix?

    Development site accidentally got indexed and now appears in SERPs. How to fix?

    Technical SEO Issues
    6 6 2.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.
    • matt-14567
      matt-14567 last edited by

      I work at a design firm, and we just redesigned a website for a client. When it came time for the coding, we initially built a development site to work out all the kinks before going live. Then we relaunched the actual site about a week ago.

      Here's the problem: Somehow, the developer who coded the site for us (a freelancer) allowed the development site to be indexed by Google.

      Now, when you enter the client's name into Google, the development site appears higher in the results pages than the real site! In fact, the real site isn't even in the top 50 search results. The client is understandably angry about this for multiple reasons.

      We quickly added a robots.txt file to the development site and a 301 redirect to the real site. However, that did seemed to have no effect on the problem.

      Any ideas on how to fix this mess? Thank you in advance!

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

        Hi Matt

        Through Google Webmaster Tools, you can request that the whole website (the development site) be removed from Google's index.  Could speed up the removal process by doing so.

        Regards

        Simon

        1 Reply Last reply Reply Quote 1
        • Jay.Neely
          Jay.Neely last edited by

          Use Google Webmaster tools. Under Site Configuration > Crawler Access, there is a "Remove URL" tab that will allow you to request URLs be removed from Google's index.

          stefanok 1 Reply Last reply Reply Quote 1
          • stefanok
            stefanok @Jay.Neely last edited by

            Both nailed it spot on. Thats the way to go.

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

              This exact same thing happened to me.  I wasn't aware of the remove URL tool that others have suggested, so if it helps I'll tell you what I did.  I simply added a rel=canonical tag from the development site to the new one.  Then, once the new one had regained its SERP I deleted the development site.  That way, I was sure that the client's site would have good positions.

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

                For the future, I'd suggest using something like Code Monitor (https://polepositionweb.com/roi/codemonitor/index.php) to monitor for any changes to your live or staging robots.txt. I've been in situations where too many people had access to the site that didn't know what they were doing, and getting an alert within 24 hours that someone changed something in robots.txt really saved us.

                1 Reply Last reply Reply Quote 2
                • 1 / 1
                • First post
                  Last post
                • My WP website got attack by malware & now my website site:www.example.ca shows about 43000 indexed page in google.
                  0
                  1
                  82

                • Removing a site from Google index with no index met tags
                  effectdigital
                  effectdigital
                  1
                  5
                  58

                • Site Not Being Indexed
                  MattAntonino
                  MattAntonino
                  0
                  9
                  163

                • Google Indexing Development Site Despite Robots.txt Block
                  DeanAndrews
                  DeanAndrews
                  0
                  6
                  990

                • One page of the site disappeared from serp for a month now
                  Er_Maqui
                  Er_Maqui
                  0
                  3
                  157

                • Staging site and "live" site have both been indexed by Google
                  jesse-landry
                  jesse-landry
                  0
                  6
                  1.3k

                • Walking into a site I didn't build, easy way to fix this # indexing problem?
                  SanketPatel
                  SanketPatel
                  0
                  2
                  211

                • Accidentally checked privacy setting in WP to "not to index" and dropped rank...how can I fix this?
                  RobertFisher
                  RobertFisher
                  0
                  5
                  257

                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