View Single Post
Old 11-30-2012, 01:21 PM   PM User | #1
Custard7A
Regular Coder

 
Custard7A's Avatar
 
Join Date: Jul 2010
Location: Australia
Posts: 269
Thanks: 32
Thanked 32 Times in 32 Posts
Custard7A is an unknown quantity at this point
Internet Explorer Not Showing My ErrorDocument

I don't understand this. I went to check my HTTP error pages with IE 9, but it isn't using my defined document..!

My .htaccess:
Code:

suPHP_ConfigPath /home/path/you/dont/need/know

Options -Indexes

ErrorDocument 400 /error.php?id=400
ErrorDocument 401 /error.php?id=401
ErrorDocument 403 /error.php?id=403
ErrorDocument 404 /error.php?id=404
ErrorDocument 500 /error.php?id=500
All the other browsers are using error.php, but IE 9 is using it's own HTTP error page!

First thing I did was make the document itself really simple, like this:
Code:

 <!DOCTYPE html>

 <html lang="en" dir="ltr">

   <head>

   <meta charset="utf-8">

   <title> Error </title>

 </head>

  <body> 

    <p> Something went wrong. </p>

 </body>
 </html>
So, I thought maybe it was because I was using dynamic links, or something in the .htaccess was interfering.
This is absurd of course, the browser shouldn't know what's happening on the server. I made it as simple as I could:

Code:

ErrorDocument 404 /error404.htm
No luck, it was still not my page in IE 9, other browsers were fine. I changed it to a file that didn't exist:

Code:

ErrorDocument 404 /why.htm
The other browsers complain about a misconfiguration when I try to trigger a 404, but IE 9 still has it's own page.


Grr, does IE just ignore my .htaccess? That would be stupid.

P.S. This is my site via a non-existant page: http://www.zombli.net/nothing. It's only a development zone, nothing pretty there at the moment.
Custard7A is offline   Reply With Quote