asp.net 404 和seo的问题,很有价值哦
web.config如下:<customErrors mode="RemoteOnly" defaultRedirect="err.htm">
<error statusCode="403" redirect="NoAccess.htm" />
<error statusCode="404" redirect="notfound.aspx" />
</customErrors>
网站域名: http://www.**.com,目的是让别人请求本站不存在的页面是转到notfound.aspx并且返回404代码。部署完毕以后测试如下:
在浏览器里输入 http://www.**.com/fff.aspx(fff.aspx这个页面是网站不存在的)
在fiddler里检测到
http://www.**.com/fff.aspx 返回代码 302
检测到 http://www.**.com/notfound.aspx?aspxerrorpath=/fff.aspx 返回代码404
请问这里有返回302的代码,本人的web.config设置正确吗?这里返回302代码对seo有影响吗?谢谢
--------------------编程问答-------------------- 设置应该是没有问题吧 --------------------编程问答-------------------- 关键是返回302对seo是不是会有影响!
--------------------编程问答-------------------- 高手呢,去哪了啊! --------------------编程问答-------------------- 有影响
最好返回404 --------------------编程问答-------------------- 有影响。。。。。 --------------------编程问答-------------------- 看看SEo的基础只是 就不会问这个问题了
补充:.NET技术 , ASP.NET