Skip to content Skip to sidebar Skip to footer

Cannot Get Favicon.ico To Display

I have copied my favicon.ico file to my Apache document root. I had to add an Apache Rewrite exception for it and now it is accessible from www.example.com/favicon.ico. But when

Solution 1:

Try throwing this tag in the head of your document:

<link href="/favicon.ico"type="image/x-icon" rel="icon" />

Solution 2:

IE and Firefox can behave differently (not sure which one you are using). Try to add the page as a bookmark, then click the bookmark (to load the page). After you do that exit your browser and see if the if shows up then.

If that does not work try to clear your browser cache and repeat the above steps that should fix it. I have seen your problem before!

Solution 3:

the favicon.ico reference must be an absolute URL, not relative. Using this:

<link rel="icon" href="/favicon.ico"type="image/x-icon">    
<link rel="shortcut icon" href="/favicon.ico"type="image/x-icon">

My status was

favicon.ico () shows up in:

    IE 9.0.8
    Safari 5.1.7 

Fails in:

    FF 28.0
    Google Chrome 34.0

changing to absolute values

<link rel="icon" href="http://127.0.0.1/favicon.ico"type="image/x-icon">
<link rel="shortcut icon" href="http://127.0.0.1/favicon.ico"type="image/x-icon">

causes all browsers to locate and display the favicon.ico

Solution 4:

Could it be that you uploaded the favicon after your browser has remembered that your domain doesn't have one and therefore doesn't issue a new request?

Solution 5:

favicon icon behaves differently for different browswrs & sometimes if it works in FF & does not work in IE. Try after Clearing the cache of the browser and standard code for favicon ico is, Just put below tag in your index file OR whichever common file for your project.

<link rel="FaviconIcon" href="favicon.ico"type="image/x-icon">

Although new browsers support GIF and PNG images , but , I would suggest always saving the image as favicon.ico.

Post a Comment for "Cannot Get Favicon.ico To Display"