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. How to remove all sandbox test site link indexed by google?

    How to remove all sandbox test site link indexed by google?

    Technical SEO Issues
    8 3 1.3k
    • 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.
    • JohnHuynh
      JohnHuynh last edited by

      When develop site, I have a test domain is sandbox.abc.com, this site contents are same as abc.com.

      But, now I search site:sandbox.abc.com and aware of content duplicate with main site abc.com

      My question is how to remove all this link from goolge.

      p/s: I have just add robots.txt to sandbox and disallow all pages.

      Thanks,

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

        "p/s: I have just add robots.txt to sandbox and disallow all pages."

        That will do it, just have to wait till google picks up on those instructions (might take a while)

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

          If you are webmaster, you can demote the unwanted content using google web master tools.

          Configuration -> Sitelinks-> Demote this sitelink URL:

          And obviously, keep updating robots.txt moving forward.

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

            Thank you my friends. I could not understand denote a site link.

            I want to denote all site link in site:http://sandbox.vietnamvisacorp.com/

            How to denoted all in this:

            • For For this search result field: ???

            • For Demote this sitelink URL field: ???

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

              Please see https://support.google.com/webmasters/bin/answer.py?hl=en&answer=47334

              You can demote up to 100 URLs, and demotions are effective for 90 days from your most recent visit to the Sitelinks page in Webmaster Tools.

              If I were you, then on http://sandbox.vietnamvisacorp.com/  I would put a 301 redirect based on ip address on all pages.

              This will redirect all users to http://www.vietnamvisacorp.com/ based on ip address, i.e. if IP address = your ip then don't redirect otherwise redirect.

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

                Thanks for you help?

                Is the IP address you mentioned is my localhost? i.e. My sandbox IP address is 123.45.67.8
                The redirect 301 should be:

                RewriteCond %{REMOTE_ADDR} ^123.45.67.8
                RewriteCond %{HTTP_HOST} !^$
                RewriteRule /* http://www.vietnamvisacorp.com/ [R,L]

                or

                RewriteCond %{REMOTE_HOST} !^123.45.67.8
                RewriteRule (.*) http://www.vietnamvisacorp.com/$1 [R=301,L]

                Am I right?

                Thanks,

                ChiragNirmal 1 Reply Last reply Reply Quote 0
                • ChiragNirmal
                  ChiragNirmal @JohnHuynh last edited by

                  Hmmm.. I think its the IP address of your computer i.e. goto http://whatismyipaddress.com/  and get your IP address and use it below.

                  RewriteCond %{REMOTE_HOST} !^123.45.67.8
                  RewriteRule (.*) http://www.vietnamvisacorp.com/$1 [R=301,L]

                  I am sorry, not much of an Apache expert.

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

                    Thanks Chirag Nirmal,

                    I have redirected 301 successfully. This is great solution.

                    Thank you!

                    1 Reply Last reply Reply Quote 0
                    • 1 / 1
                    • First post
                      Last post
                    • On our site by mistake some wrong links were entered and google crawled them. We have fixed those links. But they still show up in Not Found Errors. Should we just mark them as fixed? Or what is the best way to deal with them?
                      GlobeRunner
                      GlobeRunner
                      0
                      3
                      177

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

                    • Why is Google not indexing my site?
                      Shawn_Huber
                      Shawn_Huber
                      0
                      18
                      198

                    • Correct linking to the /index of a site and subfolders: what's the best practice? link to: domain.com/ or domain.com/index.html ?
                      CleverPhD
                      CleverPhD
                      0
                      4
                      245

                    • Google Shows 24K Links b/w 2 sites that are not linked
                      Prime85
                      Prime85
                      0
                      3
                      272

                    • Google is somehow linking my two sites that aren't linked! HELP
                      jenmcardle
                      jenmcardle
                      0
                      4
                      601

                    • Removing a site from Google's index
                      issuebasedmedia
                      issuebasedmedia
                      0
                      13
                      976

                    • Some site pages are removed from Google Index
                      randfish
                      randfish
                      0
                      6
                      1.0k

                    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