HTTP 404 - File not found Internet Explorer V6

隐身守侯 提交于 2019-11-30 19:29:01

问题


I have ang 404 code that will redirect to the site if the page is not found. It working properly in firefox. However, when I use the Internet Explorer v6. the site will get and error mesaage: "HTTP 404 - File not found Internet Explore". How can I fix this? any help is appreciated

Thanks


回答1:


Try to use a longer 404 page. That's no joke. If the 404 page is less than 512b if I remember correctly, IE will step in and show its own error message.

Adding in some comments will do.

Reference: http://www.reddit.com/r/web_design/comments/ee4zc/so_i_looked_at_plesks_404_page/

Just for completeness:

<HTML>
<HEAD>
<TITLE>404 Not Found</TITLE>
</HEAD>
<BODY>
<H1>Not Found</H1>
The requested document was not found on this server.
<P>
<HR>
<ADDRESS>
Web Server at example.com
</ADDRESS>
</BODY>
</HTML>

<!--
   - Unfortunately, Microsoft has added a clever new
   - "feature" to Internet Explorer. If the text of
   - an error's message is "too small", specifically
   - less than 512 bytes, Internet Explorer returns
   - its own error message. You can turn that off,
   - but it's pretty tricky to find switch called
   - "smart error messages". That means, of course,
   - that short error messages are censored by default.
   - IIS always returns error messages that are long
   - enough to make Internet Explorer happy. The
   - workaround is pretty simple: pad the error
   - message with a big comment like this to push it
   - over the five hundred and twelve bytes minimum.
   - Of course, that's exactly what you're reading
   - right now.
   -->


来源:https://stackoverflow.com/questions/4456738/http-404-file-not-found-internet-explorer-v6

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!