我的网站上有一些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 会产生一些其他问题,我想避免。
机器人.txt
此选项将不起作用,因为错误将取决于数据库并且不是静态的。