Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

I created a custom error page using htaccess but it doesn't work on IE?

Am using .htaccess to create custom error pages, but the thing is that, it works on other browsers such as safari, chrome, firefox, opera but not on IE. here's my code, what is it that am missing why won't it work on IE?

      ###################################
      ##
      ## HTACCESS CONTROL MODULE
      ## USED TO REDIRECT/DYNAMICALLY
      ## CONTROL URL's ON A WEBSITE
      ## 
      ##
      ###################################
       Options +FollowSymlinks
       RewriteEngine on
       RewriteRule ^(.*)\.htm$ $1.php [NC]
       # custom error documents

       ErrorDocument 404 /404.php
       ErrorDocument 403 /403.php
       ErrorDocument 500 /500.php
like image 639
Charming Prince Avatar asked Dec 01 '11 08:12

Charming Prince


1 Answers

First of all this behavior can be triggered by this IE (IE8 in my case) setting:

enter image description here

Second, this setting will be ignored in case your error page is larger than 512 bytes. I.e., your error page should be larger than 512 bytes if you want it to show up in Internet Explorer.

like image 122
Oleg Mikheev Avatar answered Nov 15 '22 11:11

Oleg Mikheev