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?
You can use <system.webServer><rewrite><rules> to catch /favicon.ico. Match by hostname and rewrite to different local paths per site.
You could also upload each favicon to start page and read it from there. That's what we normally do.
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.
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.
Yes, Johan, thx for bringing that up. We also added a default favicon.ico in the root not to get 404-s.
Some browsers (will not mention any names here) will ignore link[rel] element in your header. So most realiable is Johan's provided way.
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