Google Favicon

Favicon.ico not loading? Add an AddType 4


Google FaviconIf you try to access the URL of your favicon.ico directly (http://example.com/favicon.ico) and your browser opens a “Save As” window instead of just displaying it, then your Apache isn’t set up to properly deliver the .ico file type.

Add this line to your httpd.conf file:

AddType image/x-icon .ico

Don’t forget to restart Apache to load the change.

If you test your favicon.ico after the change, but your browser still tries to download the file instead of displaying it, it could just be a browser cache issue. Add a ?1 variable to the end of the URL (http://example.com/favicon.ico?1) to make your browser see the file as a new resource. If you make another change and need to test again, simply change the number after the ? for each new test.

  • Josh W

    Steve,

    You’ve solved one that’s been a minor annoyance for a while , and I’m *SURE* it was the cause of my insomnia on more than one night. ( ; Thanks! The logo’s good now.

    P.S. Do you think if Lord of the Ring’s was written today, that Frodo would have had to go all the way to Mordor to connect with a console management cable to the one computer that controls them all because he was denied SSH access? I often wonder what speed he would have to connect at initially… Probably 9600 baud.

    Geek, out.

    • Awesome sauce! I’m glad it worked out for you. 🙂

      And Frodo? Totally. Plus he’d have had to have Flow Control OFF.

    • And dude – where’s your Gravatar? 🙂

      • Josh W

        I hadn’t ever set one up before, honestly. How lazy of me. Thanks again for the tip!