Вопрос

I have seen some servers have default page icon for each pages without having to add using html. example:

http://facebook.com

http://google.com

and even the site in which we are i.e

http://stackoverflow.com

on this sites the html code <link href="url" rel="icon" type="type"/> is not used yet they have icon set for each page can you please tell me how it is done.

Это было полезно?

Решение

It's not related to .htaccess (or PHP). Browsers automatically request a /favicon.ico file when loading a page. Wikipedia and Google can tell you more.

Другие советы

Put the file favicon.ico in the root of your domain. That should solve your problem.

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top