Welcome to WebmasterWorld Guest from

Forum Moderators: ocean10000

Message Too Old, No Replies

Header errors?

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

Preferred Member from GB 

10+ Year Member

joined:Jan 26, 2004
votes: 0

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?

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

Senior Member from GB 

WebmasterWorld Senior Member dstiles is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

joined:May 14, 2008
votes: 19

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. :(