My staging website has been indexed on Google. 8 Step Recovery Process!

Reviewed by:

Fact checked by:

My staging website has been indexed on Google. What to do next?

8 Website steps to reduce any penalties for duplicate content

Oh no, My staging website has been indexed on Google! Don’t worry, softdata is here to help 🙂

To ensure your primary ‘live’ website does not get penalised by Google and lose any organic rankings, you should take the following steps:

1. Block search engine crawlers:

Update the robots.txt file on the testing/staging website to block search engine crawlers, specifically Googlebot. Add the following lines to the robots.txt file:

User-agent: *
Disallow: /

2. Add noindex meta tag:

In the head section of every page on the testing/staging site, add a noindex meta tag to instruct search engines not to index the content:

<meta name=“robots” content=“noindex, nofollow”>


Don’t let duplicate content issues harm your online presence and search rankings. At softdata, our technical SEO experts are ready to help you take control and recover from any negative impacts caused by duplicate websites. Our comprehensive SEO services and proven duplicate website recovery process will ensure that your primary website maintains its organic rankings and remains visible to your target audience.

Act now to safeguard your digital success! Contact softdata today for a free consultation and let our team of experienced professionals guide you through the process of optimising your website, implementing effective redirects, and resolving duplicate content issues. We are committed to delivering top-notch SEO solutions that drive results and keep your website ahead of the competition.


3. Remove existing indexed pages:

Use Google Search Console’s “Remove URLs” tool to request the removal of the testing/staging website’s URLs from Google’s index. Note that this is a temporary solution (about 6 months), so make sure you’ve already blocked search engine crawlers to prevent re-indexing.

4. Canonical tags:

Add canonical tags on the primary website, pointing to the corresponding pages on the primary domain. This will signal to Google that the primary website’s content is the original and preferred version.

5. Set up 301 redirects:

If possible, set up 301 redirects from the testing/staging site to the corresponding pages on the primary site. This will consolidate any link equity and help search engines understand that the primary site is the correct version.

Apache server:

If your testing/staging site and primary site are on an Apache server, you can set up 301 redirects using an .htaccess file. Create or edit the .htaccess file in the root directory of the testing/staging site and add the following lines:

RewriteEngine On
RewriteCond %{HTTP_HOST} ^staging.example.com [NC]
RewriteRule ^(.*)$ https://www.example.com/$1 [L,R=301]

Nginx server:

If your testing/staging site and primary site are on an Nginx server, you can set up 301 redirects by modifying the server block configuration for the testing/staging site. Locate the configuration file (usually found at /etc/nginx/sites-available/) and add the following lines within the server block:

server {
server_name staging.example.com;
return 301 $scheme://www.example.com$request_uri;
}

6. Verify the primary website in Google Search Console:

If you haven’t already, verify the primary website in Google Search Console to monitor its performance and address any potential issues.

7. Monitor Google Analytics and Search Console:

Regularly check Google Analytics and Search Console for both the primary and testing/staging websites to monitor their performance and identify any potential issues or penalties.

8. Communicate with Google:

If you notice any negative impact on the primary website’s organic rankings or if it has already been penalised, submit a reconsideration request through Google Search Console explaining the situation and the steps you’ve taken to address the issue.

By following these steps, you’ll minimise the risk of the primary website being penalised and help maintain its organic rankings.


Don’t wait for your website’s performance to be compromised. Reach out to us at softdata, and together, we’ll turn your duplicate website challenge into an opportunity for growth and success. Contact us here or call us at 01452 502 508 to get started on the path to a stronger online presence.


Indexed Staging Website FAQ

How can I prevent my testing/staging website from being indexed by search engines?
To prevent your testing/staging website from being indexed, update the robots.txt file with the following lines to block search engine crawlers:

Additionally, add a noindex meta tag to the head section of every page on the testing/staging site:

My testing/staging website has already been indexed by Google. How can I remove it from the search results?

Use Google Search Console’s “Remove URLs” tool to request the removal of the testing/staging website’s URLs from Google’s index. Note that this is a temporary solution (about 6 months), so make sure you’ve already blocked search engine crawlers to prevent re-indexing.

How can I tell Google that my primary website is the original and preferred version of the content?

Add canonical tags on the primary website, pointing to the corresponding pages on the primary domain. This will signal to Google that the primary website’s content is the original and preferred version.

Example: <link rel=”canonical” href=”https://www.example.com/folder/product1″ />

Can I set up redirects from the testing/staging site to the primary site to consolidate link equity?

Yes, you can set up 301 redirects from the testing/staging site to the corresponding pages on the primary site. For Apache servers, use an .htaccess file, and for Nginx servers, modify the server block configuration. This will help search engines understand that the primary site is the correct version and consolidate any link equity.

I think my primary website’s organic rankings have been negatively affected by the duplicate content on the testing/staging site. What can I do?

If you believe your primary website has been penalised, take the following steps:
– Block search engine crawlers from the testing/staging site using robots.txt and noindex meta tags.
– Add canonical tags on the primary website pointing to the primary domain.
– Set up 301 redirects from the testing/staging site to the primary site.
– Remove indexed pages from the testing/staging site using Google Search Console’s “Remove URLs” tool.
– Monitor Google Analytics and Search Console for both websites to identify potential issues.
– Submit a reconsideration request through Google Search Console explaining the situation and the steps you’ve taken to address the issue.


Digital Marketing Agency in Gloucester and Cheltenham

Softdata is a leading digital agency and AI Services provider based in Gloucester and Cheltenham.

About us: Softdata is a premier digital software agency and digital marketing provider, based in Gloucester and Cheltenham. We offer a range of digital services including web design, bespoke software development, SEO, Paid advertising, conversion rate optimisation, web hosting, and AI consultancy services. Our team is dedicated to providing the best solutions tailored to the unique needs of our clients.

If you would like to discuss your needs with a Digital Specialist, we offer a Free Initial Consultation without cost or commitment. Meetings can be held at our offices, via video conference, or by telephone. Our telephone number is 01452 502 508.

Softdata is located at: Softdata Internet Limited, 80 Westgate Street, Gloucester, GL1 2NZ.