Apache and favicon.ico

Discussion in 'Server Operation' started by edge, Nov 15, 2007.

  1. edge

    edge Active Member Moderator

    Is there maybe some setting that I'm missing in Apache why I can not get favicon's to show up for websites?

    I know that it could be my browser (IE7), but I've done about everything in IE7, and still for any of my sites I can not get a favicon.ico to show up.
    I have even tried with PC's that have never accessed the sites to show the favicon... With no luck :/

    Also adding the (not really needed) code does not make it work :/
    <link rel="shortcut icon" href="http://example.com/favicon.ico" type="image/vnd.microsoft.icon"> 
    <link rel="icon" href="http://example.com/favicon.ico" type="image/vnd.microsoft.icon">
    Any other suggestions?
  2. daveb

    daveb Member

    I use this edge and it works for me.
    <link rel="shortcut icon" href="images/favicon.ico" type="[COLOR="Red"][B]image/x-icon[/B][/COLOR]" />
  3. edge

    edge Active Member Moderator

    Thank you.. That did the trick :)

    Still I think that a favicon.ico should also work when you just put it in the root of the website (without adding the code).

    Anyway. I've now got it working on the index! All I need to do now is add "your line" to all mu other pages..
  4. daveb

    daveb Member

    good deal glad that worked for you.
  5. BrandonsLinux

    BrandonsLinux New Member

    They do in a number of browsers, but that is not a server setting.
  6. edge

    edge Active Member Moderator

    I know.. And in my browser it's working fine for other sites on other servers, except for any site on my servers.
  7. Hans

    Hans Moderator ISPConfig Developer

    Other option to display favicons within your browser:


    You can add a line like this within the Title section within every webpage:
    <link href="/images/favicon.ico" rel="SHORTCUT ICON">

  8. edge

    edge Active Member Moderator

    Hi Hans,

    Yes I also know this, and did something like this allready (see post above).
    Problem is that hits site has over 200 pages.. I really do not want to add this to all ;/
  9. Hans

    Hans Moderator ISPConfig Developer

    Ok, i see and understand that you like to try another solution because of that 200 pages.

    You should also know that with a program like Dreamweaver you can add this line in all the open pages at once.
    So the work is 10 minutes or so.

Share This Page