Mobile app version of vmapp.org
Login or Join
Hamm4606531

: 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

@Hamm4606531

Posted in: #DuplicateContent #Seo #WebDevelopment

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.

10.02% popularity Vote Up Vote Down


Login to follow query

More posts by @Hamm4606531

2 Comments

Sorted by latest first Latest Oldest Best

 

@Goswami781

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.

10% popularity Vote Up Vote Down


 

@Ann8826881

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).

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme