: Will having a staging site hurt my SEO because of duplicate content? I'm developing a site (WordPress) and have a staging site where I make changes and do testing. The two domains are example.com
I'm developing a site (WordPress) and have a staging site where I make changes and do testing. The two domains are example.com and staging.example.com. The contents of the sites are completely the same.
Is this going to be a problem for SEO, since I understand that Google punishes duplicate content?
I know I can turn off Search Engine Visibility in the staging site, but would then have to remember to turn it back on again every time I update my production site.
More posts by @Hamm4606531
2 Comments
Sorted by latest first Latest Oldest Best
Another option would be to block the access of staging site using robots.txt file.
In this method, you can leave public access for yourself and your team and search engines will not attempt to crawl staging site (subdomain).
Above solution is fine too.
The better answer is to password protect the entire subdomain at the server level. That way if Google attempts to access, they see the staging site responds with HTTP/1.1 401 Authorization Required and won't access. Here is an article on how to do this in cPanel (not sure what environment you are in).
Terms of Use Create Support ticket Your support tickets Stock Market News! © vmapp.org2024 All Rights reserved.