-1

All my php pages sit in the one folder (public_html) on my hosted production linux server. Inside that folder I have an images folder with my icon in it. All pages aside from index.php show the favicon. They all have this tag in their head:

<link rel="icon" type="image/png" href="./images/t2.png">

Any idea why it won't show on index.php in google Chrome?

edit: The solution in the "possible duplicate" doesn't fix my problem.

erv
  • 593
  • 8
  • 27
  • Possible duplicate of [Favicon is not loading in Chrome](https://stackoverflow.com/questions/19641000/favicon-is-not-loading-in-chrome) – Brian Peacock Apr 04 '19 at 07:22
  • If you read my comment below @BrianPeacock, you'd see that I tried loading it fresh on a different computer, and it didn't work. So the "possible duplicate" clearly doesn't apply. – erv Apr 04 '19 at 11:45

2 Answers2

0

Chrome has a pretty "sticky" favicon cache, does it help to delete saved files/images in your Chrome settings and reload the page? You could try with ctrl+F5 (Win) or cmd+shift+R (Mac) first. More info: https://www.nullalo.com/en/how-to-delete-google-chrome-favicon-cache/

anatolhiman
  • 1,762
  • 2
  • 14
  • 23
  • I just tried loading the page on my laptop for the first time and it doesn't show (in chrome). So there must be something else going on. – erv Mar 31 '19 at 08:45
0

Solved this by renaming my icon image to favicon.ico and putting it in the root directory. Didn't change the icon reference in the html head. That reference must be ignored by Chrome on index.php, but followed on other pages, for some reason.

erv
  • 593
  • 8
  • 27