Go Back   CodingForums.com > :: Server side development > Apache configuration

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
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
Old 12-08-2012, 01:00 AM   PM User | #2
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
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.
Custard7A is offline   Reply With Quote
Old 12-16-2012, 04:19 PM   PM User | #3
schleppel
Regular Coder

 
Join Date: Oct 2004
Posts: 330
Thanks: 0
Thanked 13 Times in 13 Posts
schleppel is an unknown quantity at this point
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).
schleppel is offline   Reply With Quote
Users who have thanked schleppel for this post:
Custard7A (12-17-2012)
Old 12-19-2012, 03:06 AM   PM User | #4
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
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.
Custard7A is offline   Reply With Quote
Old 12-26-2012, 02:50 PM   PM User | #5
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
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..
Custard7A is offline   Reply With Quote
Reply

Bookmarks

Tags
errordocument, htaccess

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 08:59 PM.


Advertisement
Log in to turn off these ads.