Staging Site Indexed

Francis Begbie

Regular Member
Joined
May 4, 2019
Messages
263
Reaction score
65
Hi,

A staging site has been indexed in Google but the site has now been moved across to a production server which has got IP restrictions on accessing the website.

add_header X-Robots-Tag "noindex, nofollow, nosnippet, noarchive"; has been added to the server where the staging site is kept.

Is this going to mean that the Staging is eventually automatically removed from the search results and is this going to prevent it happening again in the future. Sadly IP restrictoons on the staging site are not ideal.

Thanks.
 
Just wondering if anyone could please provide some insight?

Many thanks
 
You can add Noindex robots meta tags.
Also disallow in robots.txt
You can also 301 redirect staging site to production site for external ips and google bot.

Or do 404 for staging site.
 
Back
Top