Join us this Friday for AI in Action at the Virtual Happy Hour! This free virtual event is open to all—enroll now on Academy and don’t miss out.

 

Multiple favicons

Vote:
 

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?

#133030
Aug 25, 2015 13:06
Vote:
 

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

#133055
Aug 25, 2015 17:14
Vote:
 

Hi, Ulle,

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

BR,

Marija

#133170
Aug 27, 2015 11:00
Vote:
 

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.

#133279
Aug 31, 2015 23:23
Vote:
 

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.

#133282
Sep 01, 2015 8:54
Vote:
 

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

#133284
Sep 01, 2015 9:39
Vote:
 

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

#133330
Sep 01, 2015 22:38
Vote:
 

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: http://stackoverflow.com/questions/11227661/adding-favicon-through-a-http-header

#133335
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.