[dba-VB] favicon (was: Syslogs)

Gustav Brock Gustav at cactus.dk
Tue Jun 30 16:02:21 CDT 2009


Hi Drew

All tests have been done on a hosted IIS7.

/gustav


>>> DWUTKA at marlow.com 30-06-2009 20:42 >>>
The reason those href's might not work is going to be dependant upon
whether or not IIS is running.  If you have a webserver, then a URL can
be 'soft', or based on the root of the webserver.  No webserver,
everything must include a full URL (or 'hard' URL).

Drew

-----Original Message-----
From: dba-vb-bounces at databaseadvisors.com 
[mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Gustav Brock
Sent: Tuesday, June 30, 2009 12:06 PM
To: dba-vb at databaseadvisors.com 
Subject: [dba-VB] favicon (was: Syslogs)

Hi Drew

That gives me an idea regarding favicon.

I've found that it is sometimes difficult to get IE to understand that a
favicon is present and should be displayed.
Some common methods are:

    <!-- Favicon for IE browsers -->
    <link rel="shortcut icon" href="favicon.ico" />
    <!-- Favicon for other browsers -->
    <link rel="icon" href="favicon.ico" />

This typically doesn't work. These may:

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

mtaulty.com/CommunityServer:
<link rel="shortcut icon" type="image/ico"
href="/CommunityServer/favicon.ico" />

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

The most reliable method I've found is the last - to use the full URL -
but it is not nice to have hardcoded strings like these.
So how about using your method:

<link rel="shortcut icon" href="http://127.0.0.1/favicon.ico"
type="image/x-icon" />  

or localhost:

<link rel="shortcut icon" href="http://localhost/favicon.ico"
type="image/x-icon" />  


Anyone having experience with this?

/gustav


>>> DWUTKA at marlow.com 30-06-2009 18:49 >>>
Actually, if you have an IP address, it is real.  It then gets into what
it is used for.  For example, with your wireless, if it's not connected,
it won't have an IP address.  If a standard NIC is not connected, it
will show no address.  If it IS connected, but not receiving an IP
address, it will default to a (I think) 169 something, which is a hard
coded address, which means nothing.

You can also have internal addresses such as 127.0.0.1, which is a
loopback to your local machine. (so if you are running a website,
putting in http://127.0.0.1 on the server will give you the local
website).

Drew





More information about the dba-VB mailing list