站长 设置404页面http状态返回码是404
前段时间网站层级架构做了调整,造成许多已收录的链接变成了死链接,虽已设置了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
效果图:
相关推荐
csstpeixun 2020-06-28
competeking 2020-06-14
Dreamya 2020-06-09
XuDanT 2020-06-07
byourb 2020-05-14
zhangxiaocc 2020-01-30
lanzhusiyu 2019-12-30
孙雪峰 2019-08-23
高触Toucher 2018-04-16
AGGirl 2018-10-31
霸王棍 2011-05-12
麦当劳 2011-12-15
贫农 2015-11-04
industry0 2013-12-21
yanghan 2011-09-15
wawaboss 2012-04-10
tydanei 2019-07-01