解决 我们检测到您的 404(找不到文件)错误页在标头中返回了 200 (成功) 状态。的问题 由于很多空间提供商默认使用了自定义404页面,但是这在留住访客的同时却遭遇了搜索引擎不能验证网站的问题,原因在于,页面的404返回状态变成了有效页。 会导SEO复制网页,这SEO肯定不愿意,所以404一定要不能返回200状态。
   解决办法很简单,使用php的header 命令保存一个php页面。或者在原来的自定义404页面上加入

  1. <?php
  2.         header("HTTP/1.0 404 Not Found");
  3. ?>

代码(php)

  asp 的话加上
 

    • <%
    •    Response.Status = "404 Not Found"
    • %>

 Leave a Reply

(required)

(required)

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>