SaaS CMS has officially launched! Learn more now.

Multiple favicons


I hope this is the right forum. Does anyone know, in a five-site solution, what's the easiest way to have separate favicons for each site?

Aug 25, 2015 13:06

You can use <system.webServer><rewrite><rules> to catch /favicon.ico. Match by hostname and rewrite to different local paths per site.

Aug 25, 2015 17:14

Hi, Ulle,

You could also upload each favicon to start page and read it from there. That's what we normally do.



Aug 27, 2015 11:00

The favicon doesn't have to be named favicon.ico, .png or .gif

You can select any image by using the following HTML

<link rel="shortcut icon" href="/path/to/image" type="mime-type" />

Just consider what mime-type your image has and replace the value of the type attribute.

Aug 31, 2015 23:23

A lot of software and services will try to request /favicon.ico regardless of your headers and LINK-elements so I recommend serving from there. Otherwise you will see a lot of 404 errors in your web server logs.

Sep 01, 2015 8:54

Yes, Johan, thx for bringing that up. We also added a default favicon.ico in the root not to get 404-s.

Sep 01, 2015 9:39

Some browsers (will not mention any names here) will ignore link[rel] element in your header. So most realiable is Johan's provided way.

Sep 01, 2015 22:38

Also... If a user bookmarks, for example, a JPG file on the site. It's pretty hard to get a LINK element in there.

And the HTTP header option has very poor support:

Sep 02, 2015 8:38
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.