tags:

views:

989

answers:

5

I am using the following:

<link rel="shortcut icon" href="/images/favicon.ico" />

It is a true 'ico'. When I visit http://mydomain.com, the icon loads. But when I visit the 'www' subdomain: www.mydomain.com...it won't load. Any ideas what is going on?

A: 

This sounds like a configuration issue on your end which we can't solve without more information. Have you tried using an absolute URL instead of a relative one?

Example:

<link rel="shortcut icon" href="http://mydomain.com/images/favicon.ico" />
Lucas Jones
+1  A: 

Perhaps the first slash in

href="/images/favicon.ico"
is causing a problem?

David
Why would this present a problem?
ceejayoz
Because it is an absolute path, not a relative path. It assumes that the 'images' folder is at the topmost level of the file system, as opposed to "images/favicon.ico", which would indicate that the 'images' folder is relative to the current working directory.
David
A: 

Have you tried

<link rel="shortcut icon" href="images/favicon.ico" />

? What is the directory structure for www subdomain? Can you access other image files using the absolute path?

Burgos
A: 

Fireworks often picks up the favicon.ico file automatically without any code, so long as it is the same folder as the document. Try moving your file up a level to avoid referencing issues.

Patrick Beardmore
A: 

you can try to put the icon to the root.

M. Utku ALTINKAYA
downvoter, can you explain the reason ?
M. Utku ALTINKAYA