简体   繁体   English

加载PHP网页后,Internet Explorer返回错误:404?

[英]Internet Explorer Returns Error:404 upon loading a PHP webpage?

My website has a login page which is in the PHP format, it includes HTML code below the PHP code to display the webpage, This works fine in Chrome or Firefox, but in IE I get the error: 我的网站上有一个PHP格式的登录页面,该页面在PHP代码下方包含HTML代码以显示该网页,这在Chrome或Firefox上工作正常,但在IE中却收到错误消息:

The webpage cannot be found 找不到网页

What is happening? 怎么了? Before this started, IE displayed the webpage with bad formatting. 在此之前,IE会以错误的格式显示该网页。

Is the page quite small, with not much content? 页面是否很小,内容不多?

When you view source in Internet Explorer, do you see the actual page content? 在Internet Explorer中查看源代码时,您是否看到了实际的页面内容?

It's quite possible that the page is returning a 404 Not Found header. 页面很有可能返回404 Not Found标头。 In that case, if the page content is small, Internet Explorer will show its own error message, instead of the page content. 在这种情况下,如果页面内容很小,Internet Explorer将显示其自己的错误消息,而不是页面内容。 Firefox and other browsers will show the page content even if there are error messages. 即使有错误消息,Firefox和其他浏览器也会显示页面内容。 So will IE if the page content is large (I can't remember the actual number of bytes required). 如果页面内容很大(我不记得所需的实际字节数),IE也将如此。

I would suggest you use the Live HTTP Headers plugin for Firefox, or some other means to investigate the actual HTTP Headers returned by your script. 我建议您使用适用于Firefox的Live HTTP Headers插件,或使用其他方法调查脚本返回的实际HTTP Header。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM