我有 ang 404 代码,如果找不到该页面,它将重定向到该网站。它在火狐浏览器中运行正常。但是,当我使用 Internet Explorer v6.该网站将收到错误消息:“HTTP 404 - 文件未找到 Internet Explore”。我怎样才能解决这个问题?任何帮助表示赞赏
Thanks
尝试使用更长的404页面。这可不是开玩笑。如果404页面小于512b(如果我没记错的话),IE将介入并显示自己的错误消息。
添加一些评论就可以了。
参考:http://www.reddit.com/r/web_design/comments/ee4zc/so_i_looked_at_plesks_404_page/
只是为了完整性:
<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.
-->
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)