HTTP 404 - 找不到文件Internet Explorer V6 [英] HTTP 404 - File not found Internet Explorer V6

查看:171
本文介绍了HTTP 404 - 找不到文件Internet Explorer V6的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有ang 404代码,如果找不到该页面,将会重定向到该网站。它在firefox中正常工作。但是,当我使用Internet Explorer v6时。该网站将获得和错误mesaage:HTTP 404 - 文件未找到Internet Explore。我怎样才能解决这个问题?任何帮助表示赞赏

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

谢谢

推荐答案

尝试使用更长时间404页。那不是开玩笑。如果我记得错误,如果404页面小于512b,IE将介入并显示自己的错误消息。

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.

添加一些注释即可。

参考: 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.
   -->

这篇关于HTTP 404 - 找不到文件Internet Explorer V6的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆