AI OnAI Off
I don't know if it's the easiest solution but I would add url rewrite to the web.config and serve different favicon files based on the requested domain. Something like below. Not tested.
<rewrite>
<rules>
<clear />
<rule name="site1.com/favicon.ico">
<match url="^favicon.ico$" />
<conditions>
<add input="{HTTP_HOST}" pattern="site1.com" />
</conditions>
<action type="Rewrite" url="https://www.site1.com/favicon-site1.ico" />
</rule>
<rule name="site2.com/favicon.ico">
<match url="^favicon.ico$" />
<conditions>
<add input="{HTTP_HOST}" pattern="site2.com" />
</conditions>
<action type="Rewrite" url="https://www.site2.com/favicon-site2.ico" />
</rule>
</rules>
</rewrite>
Hi,
I have multiple websites and added diffrernt favicons for each websites and its working fine also. But when open any imgae in new tab from any of the website it is using default favicon "favicon.ico". I need to use website specific favicon for images also.
Please assist with this.