School Assignment? Project Due Tomorrow? Chat LIVE With A Programming Expert!
Welcome to Dream.In.Code
Become an Expert!

Join 340,125 Programmers for FREE! Get instant access to thousands of experts, tutorials, code snippets, and more! There are 4,049 people online right now. Registration is fast and FREE... Join Now!



favicon not showing

favicon not showing

#1 botkiller  Icon User is offline

  • New D.I.C Head
  • Pip
  • Group: New Members
  • Posts: 2
  • Joined: 01-October 07


Dream Kudos: 0

Posted 01 October 2007 - 03: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:

<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!
Was This Post Helpful? 0
  • +
  • -


#2 asadarnell  Icon User is offline

  • D.I.C Head
  • PipPip
  • Group: Members
  • Posts: 108
  • Joined: 30-August 07


Dream Kudos: 0

Posted 01 October 2007 - 04:32 PM

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.
Was This Post Helpful? 0
  • +
  • -

#3 axel  Icon User is offline

  • Bug Juice Doesn't Come in a Jar
  • Icon
  • Group: Contributor w/DIC++
  • Posts: 1,937
  • Joined: 31-December 06


Dream Kudos: 100

Posted 01 October 2007 - 07:14 PM

I don't think you can. I'm pretty sure it is just one favicon for a site.
Was This Post Helpful? 0
  • +
  • -

#4 Mikhail  Icon User is offline

  • rm -rf *
  • Icon
  • Group: Authors
  • Posts: 1,094
  • Joined: 26-October 07


Dream Kudos: 250

Posted 28 October 2007 - 11:25 AM

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

	<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:
  • 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.
  • GIF: use 16×16 in 256 colors.
  • PNG: use 16×16 in either 256 colors or 24-bit.

^ these were taken from Wikipedia the list of sizes and colors.
Was This Post Helpful? 0
  • +
  • -

#5 cr_amh  Icon User is offline

  • New D.I.C Head
  • Pip
  • Group: New Members
  • Posts: 2
  • Joined: 04-January 09


Dream Kudos: 0

Posted 04 February 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

<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
Was This Post Helpful? 0
  • +
  • -

#6 james_anderson  Icon User is offline

  • New D.I.C Head
  • Pip
  • Group: New Members
  • Posts: 2
  • Joined: 29-June 09


Dream Kudos: 0

Posted 29 June 2009 - 03:46 AM

View Postcr_amh, on 4 Feb, 2009 - 07:49 PM, said:

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

<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! :) as I'm beginning to go slightly crazy in search of an elusive answer that may not even be possible! :crazy:
Was This Post Helpful? 0
  • +
  • -

#7 PsychoCoder  Icon User is offline

  • apt-get install DIC.bin
  • Icon
  • View blog
  • Group: Admins
  • Posts: 16,211
  • Joined: 26-July 07


Dream Kudos: 12400

Expert In: VB, VB.Net, C#, SQL, ASP, ASP.Net, Web Development, HTML, CSS, Win32 API, Javascript, mySQL, J#, Boo.Net, jQuery

Posted 04 July 2009 - 09:26 PM

Moved to Web Development
Was This Post Helpful? 0
  • +
  • -



Fast Reply

  

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users



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