80477204 2016-02-25
前段时间网站层级架构做了调整,造成许多已收录的链接变成了死链接,虽已设置了404页面,可是百度仍然没有更新死链收录情况,后细查原来是http状态返回码仍然是200,之后咨询了售后服务工程师得知此设置。
404.asp
<!doctype html> <html> <%@LANGUAGE="VBSCRIPT" CODEPAGE="65001"%> <%Session.codePage=65001%> <% Response.Charset = "utf-8" %> <% Response.Status = "404 Not Found" %> <head> <meta charset="utf-8"> <meta http-equiv="refresh" content="10; URL=/" /> <title>网页或文件未找到</title> </head> <body> <script type="text/javascript" src="http://www.qq.com/404/search_children.js" charset="utf-8" homePageUrl="/" homePageName="返回首页"></script> </body> </html>
已添加这一段代码和修改为404.asp
<%@LANGUAGE="VBSCRIPT" CODEPAGE="65001"%> <%Session.codePage=65001%> <% Response.Charset = "utf-8" %> <% Response.Status = "404 Not Found" %>
在 IIS 重新指向404.asp
效果图: