Reputation: 133
I have multiple web sites running in a single Sitecore installation (iis site). Is there a way I can have different favicon.ico for each websites when serving pdf documents. Maybe by overriding Sitecore's MediaRequestHandler ? Thank you.
Upvotes: 4
Views: 834
Reputation: 31435
If you're currently just dropping in a favicon.ico
file in the wwwroot for the site, that will show that icon for all sites on that instance. Since serving up media content goes through the MediaRequestHandler
as you pointed out, that handler runs in the context on that IIS managed site, and therefore will show the root favicon.ico
. The way to fix this for content pages is to reference a favicon via a meta tag in your specific layout, but I don't believe you can get around this for media items.
Upvotes: 2