开发者

404 page returns 200 ok

If i type www.mydomain/error404.html directly in to browser bar should it return a 4开发者_Go百科04 responce or 200 ok?

if i type www.mydomain.co.uk/something-that-dosent-exist.html, it returns the 404 page with the correct status as 404, however should my actual 404.html page return 200ok??

http://gsitecrawler.com/tools/Server-Status.aspx

domain http://www.novahealthy.co.uk

error doc error404.html


htaccess

AddType x-mapp-php4 .htm

#turn off the smart spelling matching feature.
CheckSpelling off

#set your real error document, which can be a php document.
ErrorDocument 404 /error404.html

host is 1and1 shared hosting

cheers for any help lee


Yes, that's correct. If you're going to any world-accessible site and your browser successfully gets that page you should have 200 OK returned.

Typically you don't keep error pages in a place that a user is able to directly access. You usually internally redirect to an error page on the server.


I would expect it to return a 200. Your page (even though it's named 404, and is being used as your redirect 404 page) exists, and it was found and served correctly.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜