大网数据广告活动
网站运营与故障问答

Will having a staging site hurt my SEO because of duplicate content?

· 52CE 我爱测

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 pro…

问题原文

原帖链接 · 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).

摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。

资料来源与适用范围

资料来源
Webmasters Stack Exchange
适用范围
以原帖系统、软件版本与发布日期为准(2017-05-13)
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY-SA 3.0

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。