I created a custom error page using htaccess, but it does not work on IE?

I use .htaccess to create custom error pages, but the fact is that it works in other browsers like safari, chrome, firefox, opera, but not in IE. here is my code that it disappears why won't it work in IE?

################################### ## ## HTACCESS CONTROL MODULE ## USED TO REDIRECT/DYNAMICALLY ## CONTROL URL 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 
+6
source share
1 answer

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

enter image description here

Secondly, this parameter will be ignored if your error page is more than 512 bytes . Ie, your error page should be larger than 512 bytes if you want it to display in Internet Explorer.

+10
source

Source: https://habr.com/ru/post/902821/


All Articles