Customizing Error Pages


I’m playing around with creating custom error pages and Internet Explorer is not cooperating.

I created a folder (err-pg), inside I have an animated gif (oops.gif) and a file called 404.html --404.html links to oops.gif.

If my code in .htaccess links directly to the gif, IE displays properly. If I link to 404.html IE displays the generic default page.

Edge and Chrome display properly regardless if I link to 404.html or the gif directly.

Is there some code I can use (either in 404.html or .htaccess) for IE to display properly?

I want to add that if I enter the URL to 404.html directly in the browser the page is properly displayed, it’s just not working through any 404 error.