Forum Moderators: open

Message Too Old, No Replies

Header errors?

         

stevelibby

12:26 pm on Sep 16, 2008 (gmt 0)

10+ Year Member



hi all
i'm stumped, i have a shortcut icon in the root directory and all pages in the root directory i use the line

<LINK REL="SHORTCUT ICON" HREF="/favicon.ico">

This then shows the icon in the address bar..great, now move up a dir, so /folder.

If i use:
<LINK REL="SHORTCUT ICON" HREF="../favicon.ico"> nothing shows, any ideas?

dstiles

7:52 pm on Sep 16, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



You cannot get higher than the root directory. At least, not if your server is doing its job properly. :)

If you want to "hide" it from icon scrapers then put it into a lower directory (eg /images/favicon.ico) but note that Firefox always looks in the site root first and some toolbars never look anywhere else than the root, which throws a 404 error and makes the logs look bad. :(