Favicon for all the pages in my website

Senthil Kumar picture Senthil Kumar · Apr 28, 2010 · Viewed 52.3k times · Source

I've learned that the way to add favicon for a web page is to have the following lines in the page.

<link rel="SHORTCUT ICON" type="image/x-icon" href="http://mysite.com/faviconfilename.ico"/>
<link rel="icon" type="image/x-icon" href="http://mysite.com/faviconfilename.ico" />

Should i add this code in each and every page my site has?? I use Apache - tomcat clustering to serve pages. Is there any other easy way to do this?

Answer

Klaus Byskov Pedersen picture Klaus Byskov Pedersen · Apr 28, 2010

It is usually enough to place a file called "favicon.ico" in the root of your website.