Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 5 of 5
  1. #1
    Regular Coder Custard7A's Avatar
    Join Date
    Jul 2010
    Location
    Australia
    Posts
    286
    Thanks
    32
    Thanked 33 Times in 33 Posts

    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.

  • #2
    Regular Coder Custard7A's Avatar
    Join Date
    Jul 2010
    Location
    Australia
    Posts
    286
    Thanks
    32
    Thanked 33 Times in 33 Posts
    I noticed IE isn't consistant on this site either. It shows it's own page, while other browsers show an error about a misconfiguration when trying to use ErrorDocument (Should probably be reported). Although, other sites are using their ErrorDocuments when I look in IE, so it must be something I'm doing wrong.

  • #3
    Regular Coder
    Join Date
    Oct 2004
    Posts
    375
    Thanks
    0
    Thanked 22 Times in 22 Posts
    I don't know if it's still true but IE used to require your error page to be above a certain size (512 bytes according to http://www.404-error-page.com/404-er...osoft-ie.shtml).

  • Users who have thanked schleppel for this post:

    Custard7A (12-17-2012)

  • #4
    Regular Coder Custard7A's Avatar
    Join Date
    Jul 2010
    Location
    Australia
    Posts
    286
    Thanks
    32
    Thanked 33 Times in 33 Posts
    Yep, that is the cause of my problem. After I caused my file to be larger file-size it is now working. The things IE thinks are a good idea... It is quite frustrating.

    I would never have guessed, many thanks schleppel.

  • #5
    Regular Coder Custard7A's Avatar
    Join Date
    Jul 2010
    Location
    Australia
    Posts
    286
    Thanks
    32
    Thanked 33 Times in 33 Posts
    I thought it was worth mentioning as a curiosity, I discovered there is a setting in Internet Explorer 9 for "Enabling friendly error messages". It will disable over-writing of error documents, but it's active by default so there is little comfort there..


  •  

    Tags for this Thread

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •