Internet Explorer and Custom Errors in IIS

I have a number of webapps running on an IIS server that need to use HTTPS. I force a redirect to the HTTPS version from HTTP using a custom error 404.3 configured in IIS, that loads a page that redirects to the HTTPS login page.

When I tested this in Firefox, Safari, and Chrome it worked fine, but then I discovered that IE was serving up its own error page simply saying access forbidden.

It turns out IE will ignore any custom error pages that are less than 512 bytes in size. The simple solution is to add some extra text in a comment to the HTML to pad it out, then it works ok.

See http://perishablepress.com/important-note-for-your-custom-error-pages/

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s