PDA

View Full Version : favicon via .htaccess?


JamieR
05-09-2005, 08:43 PM
Yo there,

I've been using

<link rel="shortcut icon" href="filename.ico">

to implement a shortcut icon on my pages..

however, I've now almost finished a new website for my school and I haven't used the code above to implement a shortcut Icon. I haven't done it at all in fact. I don't have time to go through every page and add it, so is there a way I can do it via .htaccess? I heard a while back there was but I can't find anything immediatly on the internet about it.

Thanks in advance (/me puts that there to annoy people :p)

Jamie.

mark87
05-09-2005, 08:50 PM
I always thought you could just upload favicon.ico to the main root of your site?!

...failing that I just came across this - try adding it to .htaccess -

AddType image/x-icon .ico

JamieR
05-09-2005, 08:53 PM
No I think you need to reference it between the head tags of your html to get it to include on your link when it gets bookmarked.
As for the code, cheers, I'll try it ;)

JamieR
05-09-2005, 09:52 PM
All sorted..it works ;)

cheers. :thumbsup: