Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I create a favicon.ico file for every directory I want? [duplicate]

Tags:

favicon

Possible Duplicate:
Favicon in subdirectory all subdomain

My website is one big website, with many little projects in it. Each of the projects also have their own favicon.ico file (the one which is shown on the left hand side of the url bar), but even if I put a favicon.ico file inside a subdirectory, it will still not show up, and will use the favicon.ico file put at the root directory.

How do I solve this problem?

Lucas

like image 774
Lucas Avatar asked Apr 25 '12 00:04

Lucas


People also ask

Can you have multiple favicons?

Favicons were traditionally associated with a site, but since they can be included via markup in a page, you could, if you wanted, have a different favicon for each page of your site, or even for each request of a page.

How do I save a favicon ICO?

Exporting the icon for Web use is straightforward. Choose File -> Save for Web & Devices and then choose PNG-24 from the Preset pop-up menu. Click Save, enter favicon. png as the file name, and once again click Save.

How do I add a favicon to all pages?

To add a favicon to your website, either save your favicon image to the root directory of your webserver, or create a folder in the root directory called images, and save your favicon image in this folder. A common name for a favicon image is "favicon.ico".


1 Answers

You can set it on a per-page basis, like this:

<link rel="shortcut icon" href="http://example.com/myicon.ico" />

inside the <head>..</head> tags.

Setting it on a per directory basis does not work.

like image 93
stewe Avatar answered Sep 27 '22 22:09

stewe