You are here: Re: favicon & css « HTML « IT news, forums, messages
Re: favicon & css

Posted by Benjamin Niemann on 10/15/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/

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация