【发布时间】:2014-01-04 10:56:00
【问题描述】:
我的网站上没有404 错误页面。阻止谷歌索引它们的最佳方法是什么?
选项 1
header("HTTP/1.0 410 Gone");
如果内容没有消失怎么办?例如:the article does not exist. 或 wrong parameter has been caught
选项 2
<meta name="robots" content="noindex" />
它只影响一页还是整个域?
选项 3
使用 404 会产生一些其他问题,我想避免。
robot.txt
此选项将不起作用,因为错误将取决于数据库并且不是静态的。
【问题讨论】:
-
这个问题似乎是题外话,因为它是关于 SEO
-
@JohnConde 它是关于写什么代码:)
标签: seo indexing http-status-code-404 search-engine google-crawlers