Forum Moderators: open

Message Too Old, No Replies

FAVICON with a different domain address?

         

emil

5:50 pm on May 8, 2006 (gmt 0)

10+ Year Member



Hello! I have a homepage with the original server name : http://www.example.com/youngguns/index.html
But the main adress that people uses are :
www.example.se.
I have added a favicon that comes from the first
mentioned adress, that seems to work.
My problem is, the favicon doesnt appear when you
enter through www.example.se. This is only a adress
that forwards you to www.example.com/youngguns/index.html.

Whats should i do?
Regards - Emil

[edited by: tedster at 6:19 pm (utc) on May 8, 2006]
[edit reason] use example.com, not real addresses [/edit]

tedster

6:25 pm on May 8, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Two things may be wrong here, the first being what kind of "forwarding" you are using. If the url in the location bar stays example.se, then you are not using a 301 redirect at the server level, and that really is what you need. It helps avoid duplicate urls in the search engines and all the trouble that can bring to a site. However, even without doing a 301 redirect, you can place this code in the head of every page:

<link rel="SHORTCUT ICON" href="http://www.example.com/yougguns/favicon.ico">

Use the full, absolute address of the favicon.ico file and then no matter what url is accessing the page, the favicon will display. Favicon calls can cross domains, but without the code I gave above, they will only come from the root of the domain actually in use.