Favicon Help

Problems with the Windows version of XAMPP, questions, comments, and anything related.

Favicon Help

Postby DracDennis » 18. July 2011 21:35

I am trying to change the favicon on my xampp server, but when I delete the original and put in the new one, it changes back to the xampp logo. I cant figure out why it does this. Can anyone tell me why it is doing this.

Thank You.
DracDennis
 
Posts: 1
Joined: 18. July 2011 21:26

Re: Favicon Help

Postby Sharley » 18. July 2011 23:08

The xampp.ico in the \xampp\htdocs\xampp\img is the offender.

If you put your favicon.ico in the htdocs folder then for your own site it should find it if your path to it is correct - also doing this will eliminate the favicon.ico error messages in the Apache error.log file...

...but for the XAMPP Welcome page at http://localhost/xampp/ the xampp.ico in the above img folder is used.
User avatar
Sharley
AF Moderator
 
Posts: 3316
Joined: 03. October 2008 05:10
Location: Yeppoon, Australia Time Zone: GMT/UTC+10
Operating System: Win 7 Pro 32bit/XP Pro SP3

Re: Favicon Help

Postby WilliL » 19. July 2011 15:37

you could also add in html head tag
Code: Select all
<HTML>
    <head>
         ...
         <link rel="icon" type="image/jpeg" href="../folder_or_not/your.favicon.ico">
         OR !!!
         <link rel="icon" type="image/jpeg" href="http://www.domain.tdl/folder_or_not/your.favicon.ico
         ...
    </head>
Willi
WilliL
 
Posts: 661
Joined: 08. January 2010 10:54
Operating System: Win7Home Prem 64 SP1

Re: Favicon Help

Postby Altrea » 19. July 2011 16:08

Hi WilliL,
WillL wrote:
Code: Select all
<link rel="icon" type="image/jpeg" href="../folder_or_not/your.favicon.ico">

i don't know type="image/jpeg" in relation with ico files. I always use type="image/x-icon". But as far as i know is the type attribute optional on .ico files.

P.S.: allowed filetypes for .ico files are .ico (which is a container file for .bmp files), .gif and .png. So i think image/jpeg can't be a correct possibility.
We don't provide any support via personal channels like PM, email, Skype, TeamViewer!

It's like porn for programmers 8)
User avatar
Altrea
AF Moderator
 
Posts: 8286
Joined: 17. August 2009 13:05
XAMPP version: several
Operating System: Windows 10 Pro x64

Re: Favicon Help

Postby WilliL » 19. July 2011 21:44

hi Altrea,
thanks for that hint .
My used code I found in in i-net when I got a similar problem as DracDennis and it worked.
After reading your post and thinking about it, I think your right, type doesn' t fit. (It's a pity that there was no error message)

I changed my code to
Code: Select all
<link rel="icon" type="image/x-icon" href="../folder_or_not/your.favicon.ico">
Willi
WilliL
 
Posts: 661
Joined: 08. January 2010 10:54
Operating System: Win7Home Prem 64 SP1


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 49 guests