Categories
Computing TITGIG

Favicon misery – resolved!

I’ve been having trouble with this site in Internet Explorer. It loads fine in Firefox, but when I try to open it in IE, I get a nasty dialog box.

The title is “File Download – Security Warning” and the text in the box says “Do you want to save this file?” with a load of blah blah blah and ultimately “Save” and “Cancel” buttons.

I couldn’t find anything on Google, which is why I’m putting it here. Maybe one day it will help someone. Or maybe one day I’ll forget how I fixed it, and I’ll need this to jog my memory.

Anyway, much investigation revealed that the culprit was the “favicon” – when I removed the line that referenced the icon, my problem went away. It smelled a little as though my problem was with mime types – I’m very insightful like that. As it turned out, I was utterly correct.

Add the following line to the bottom of your .htaccess.

AddType image/x-icon .ico

I understand that you can also use httpd.conf to do this somehow – one day I should sit down and figure out what this is all about.

Wait a few minutes, clear your cache, make a cup of coffee, or stroke a rabbit. When you come back, all will be better. I hope.

Leave a Reply

Your email address will not be published. Required fields are marked *