问题原文
原帖链接 · John Biddle · CC BY-SA 3.0
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.
已采纳解答
原帖链接 · Matthew Edgar · CC BY-SA 3.0
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).
摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。
