Welcome to Dream.In.Code
Getting Help is Easy!

Join 136,108 Programmers for FREE! Get instant access to thousands of experts, tutorials, code snippets, and more! There are 1,711 people online right now. Registration is fast and FREE... Join Now!




favicon not showing

 
Reply to this topicStart new topic

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
QUOTE(botkiller @ 1 Oct, 2007 - 04:53 PM) *

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:
shortcut icon" href="http://www.fwank.net/botkiller/favicon.ico" type="image/vnd.microsoft.icon">[/code]

[code]<link rel="
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!

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,892


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

D.I.C Addict
Group Icon

Joined: 26 Oct, 2007
Posts: 980



Thanked: 1 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

Fast ReplyReply to this topicStart new topic
Time is now: 12/1/08 09:23PM

Live Help!

Tutorials

Programming

Web Development

Reference Sheets

Code Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month