Favicon help

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • CompressedAir
    Junior Member
    • Apr 2004
    • 4

    #1

    Favicon help

    I was trying to get a favicon working on my site. At first I thought it would just work if I uploaded my favicon.ico to public_html folder. But that didn't work, so I tried placing:
    Code:
    <link rel="icon" href="/favicon.ico" type="image/x-icon" />
    in the head of my html, but that didn't work either. Then I thought maybe I needed to add the .ico handler so I added:
    Code:
    AddHandler image/x-icon .ico
    to my .htaccess. But that didn't work either. :/

    Do I need to tell cpanel to look for the favicon? Or is there something else I need to do to get this to work?

    Thanks!
  • KyleC
    Senior Member
    • Mar 2004
    • 291

    #2
    i have never gotten fav icon to work properly, sometimes it shows up other times it doesnt...

    to use it all you supposedly have to do to install it is place it in your HTML directory.

    but these do help:

    To have Explorer pick up the default favicon.ico, copy it into the root directory - the main directory that holds your HTML pages. If all you want is favicon.ico to be associated with your site, you're done. Every time a visitor bookmark your site with Explorer, favicon.ico is copied to the visitor's cache, where it waits to be displayed. You don't even need to alter your HTML.

    However, there are some other tricks you might want to play. If you want a different icon associated with special pages, use the LINK tag on those pages like this:
    <LINK REL="SHORTCUT ICON" HREF="mypage.ico">

    When visitors bookmark this page, instead of favicon.ico they'll get mypage.ico. You can direct the browser to any absolute location you want using:
    <LINK REL="SHORTCUT ICON" HREF="http://www.mysite.com/graphics/icons/mypage.ico">
    Last edited by KyleC; 04-02-2004, 04:31 PM.
    -Kyle

    Comment

    • CompressedAir
      Junior Member
      • Apr 2004
      • 4

      #3
      Ah thanks for the help.
      Come to find out my url rewriting was the cause. I forgot to add the ico extension of files not to rewrite! Now it works perfectly!

      Thanks again

      Comment

      Working...