|
Posted by Benjamin Niemann on 10/24/45 11:23
Edwin van der Vaart wrote:
> Benjamin Niemann wrote:
>> Paul Goodwin wrote:
>>
>>>I have a client who wishes one of these 'favicons' on every page of a
>>>fairly large site, what I'm wondering, in order to save time, is if it's
>>>possible to add the icon via the external stylesheet, instead of
>>>laboriously adding it to each page.
>>
>> It's sufficient to place the icon as 'favicon.ico' in the root folder of
>> the site. That's the location a browser will look for (*), when it tries
>> to load the favicon (look at your server logs and you'll see a lot of 404
>> error for '/favicon.ico', because it is not present yet).
>>
>> (*) unless a different location is specified using <link rel="shortcut
>> icon" ...>, but that you require a change of every page - something you
>> don't want to do.
> Can this also be done with .htaccess?
Not directly. You may use mod_rewrite to serve a different file for requests
to '/favicon.ico'. But this .htaccess file must be placed in the root
folder in order to be effective - so there's nothing gained.
--
Benjamin Niemann
Email: pink at odahoda dot de
WWW: http://www.odahoda.de/
[Back to original message]
|