Force a favicon onto a webpage – 2016 update

Back in 2011 I wrote¬†this article¬†about supporting multiple sites on shared hosting, and forcing each site to have it’s own favicon.

Modern browsers require image files, and it is just older browsers (and IE) that require the .ico files:

<link rel="icon" type="image/png" href="http://yourdomain.com/favicon.png">
<!--[if IE]><link rel="shortcut icon"href="http://yourdomain.com/favicon.ico"/><![endif]-->
Posted in General

Leave a Reply

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

*