School Assignment? Project Due Tomorrow? Chat LIVE With A Programming Expert!

Welcome to Dream.In.Code
Become an Expert!

Join 300,314 Programmers for FREE! Get instant access to thousands of experts, tutorials, code snippets, and more! There are 2,056 people online right now. Registration is fast and FREE... Join Now!




favicon not showing

 

favicon not showing

botkiller

1 Oct, 2007 - 03:53 PM
Post #1

New D.I.C Head
*

Joined: 1 Oct, 2007
Posts: 2


My Contributions
Hi everyone,

I have one host, and I point many domains to subdomains - so in my case, my primary domain is fwank.net, and I point brianbotkiller.com (and some others), to brianbotkiller.fwank.net, which in itself points to fwank.net/botkiller (I know, this is convoluted, but it's what I have right now).

My question is this; when I go to brianbotkiller.fwank.net, my favicon shows up in my browser for this domain/web page. When I go to the redirected/forwarded URL, brianbotkiller.com, the favicon does not show up. It will only show if i go to the subdomain directly, but never if I go to a forwarded domain.

My code is as follows, in the index.html for brianbotkiller.com:

CODE
<link rel="shortcut icon" href="http://www.fwank.net/botkiller/favicon.ico" type="image/vnd.microsoft.icon">


I am wondering if there is a way that I can fix this - I have a ton of domains, but do I have to have dedicated hosting for each one, if I want the browser to look at and find the favicon.ico in the correct place? I've fooled with this like crazy and I can't figure it out (apologies for this being a stupid question).

Any input is much appreciated. Thank you!

User is offlineProfile CardPM
+Quote Post


asadarnell

RE: Favicon Not Showing

1 Oct, 2007 - 04:32 PM
Post #2

D.I.C Head
**

Joined: 30 Aug, 2007
Posts: 108


My Contributions
I never put that code into my pages for favicons. If you put the favicon.ico in your main directory, it'll show up on all pages. I've never been able to specify different favicons on different pages though.
User is offlineProfile CardPM
+Quote Post

axel

RE: Favicon Not Showing

1 Oct, 2007 - 07:14 PM
Post #3

Bug Juice Doesn't Come in a Jar
Group Icon

Joined: 31 Dec, 2006
Posts: 1,937



Thanked: 2 times
Dream Kudos: 100
My Contributions
I don't think you can. I'm pretty sure it is just one favicon for a site.
User is offlineProfile CardPM
+Quote Post

Mikhail

RE: Favicon Not Showing

28 Oct, 2007 - 11:25 AM
Post #4

Infinity ∞
Group Icon

Joined: 26 Oct, 2007
Posts: 1,057



Thanked: 2 times
Dream Kudos: 250
My Contributions
The right way to add Favicon it has to be anywhere between <head> </head> tags. Also it should be placed in the Root directory of your site so the browsers can automatically detect and use it you should use both of these codes

CODE
    <link rel="shortcut icon" href="http://example.com/favicon.ico" type="image/vnd.microsoft.icon">
    <link rel="icon" href="http://example.com/favicon.ico" type="image/vnd.microsoft.icon">


Replace links with your own and name of the icon with your own. You can use .Icon,GIF,and PNG Extensions

Also the sizes are:
  1. ICO: include multiple resolutions (the most commonly used being 16×16 and 32×32, with 64×64 and 128×128, 4, 8, 24 bpp—i.e. 16, 256 and 16 million colors) in the file.
  2. GIF: use 16×16 in 256 colors.
  3. PNG: use 16×16 in either 256 colors or 24-bit.

^ these were taken from Wikipedia the list of sizes and colors.

User is offlineProfile CardPM
+Quote Post

cr_amh

RE: Favicon Not Showing

4 Feb, 2009 - 07:49 PM
Post #5

New D.I.C Head
*

Joined: 4 Jan, 2009
Posts: 2

I know it has been awhile but for people like myself who are still looking: It is possible to post multiple favicon's on different pages by specifying with the code in the html page of your files or subdirectory by adding this code between the <head> and </head> tags

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


You want to make sure you have that particular .ico in that subfolder.


I'm currently looking for a way to get a forwarded domain name to recognize the .ico file of a subdomain.

Any help is appreciated
User is offlineProfile CardPM
+Quote Post

james_anderson

RE: Favicon Not Showing

29 Jun, 2009 - 03:46 AM
Post #6

New D.I.C Head
*

Joined: 29 Jun, 2009
Posts: 2


My Contributions
QUOTE(cr_amh @ 4 Feb, 2009 - 07:49 PM) *

I know it has been awhile but for people like myself who are still looking: It is possible to post multiple favicon's on different pages by specifying with the code in the html page of your files or subdirectory by adding this code between the <head> and </head> tags

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


You want to make sure you have that particular .ico in that subfolder.

I'm currently looking for a way to get a forwarded domain name to recognize the .ico file of a subdomain.

Any help is appreciated

Yes, I know it's still been a while since these posts were written!
Is anybody able to advise whether this can be done or not, as I'm having the same problem too.... e.g can favicons be shown where domain is not associated with the hosting?
In the head tags, I have tried pointing to where the favicon.ico file is >>>eg, a bit like this...

<link rel="shortcut icon" href="http://www.mywebsite.com/example/first/favicon.ico" type="image/x-icon" />
<link rel="icon" href="http://www.mywebsite.com/example/first/favicon.ico" type="image/x-icon" />

..but it's not working, and I'm beginning to think it can not be done when you have a domain name forwarding/redirecting to a hosted files elsewhere. But I'm hoping that somebody can tell me that I'm wrong! smile.gif as I'm beginning to go slightly crazy in search of an elusive answer that may not even be possible! crazy.gif

User is offlineProfile CardPM
+Quote Post

PsychoCoder

RE: Favicon Not Showing

4 Jul, 2009 - 09:26 PM
Post #7

Dyslexics Untie!
Group Icon

Joined: 26 Jul, 2007
Posts: 14,701



Thanked: 501 times
Dream Kudos: 11450
Expert In: VB, VB.Net, C#, SQL, ASP, ASP.Net, Web Development, HTML, CSS, Win32 API, Javascript, mySQL, J#, Boo.Net, jQuery

My Contributions
Moved to Web Development
User is offlineProfile CardPM
+Quote Post

Fast ReplyReply to this topicStart new topic

Time is now: 11/7/09 02:21PM

Live Help!

Be Social

Dream.In.Code RSS Feed Dream.In.Code LinkedIn Group Follow Us On Twitter Fan Us On Facebook

Tutorials

Programming

Web Development

Reference Sheets

Code Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month