Click here to Skip to main content
15,886,026 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I can see favicon in localhost but not able to see on server...please help me
Posted
Comments
taha bahraminezhad Jooneghani 6-Jun-12 13:26pm    
did you upload it to your wwwroot?

1 solution

Upload the generated file ("favicon.ico") to your site root folder. Verify it's there by typing http://mysite.com/favicon.ico in the browser's location, where "mysite.com" is your site's address. Next, insert the below code in the HEAD section of your pages, at the very least, your site's main index page:
HTML
<link rel="shortcut icon" href="/favicon.ico" />


Have a look at these to refer:
http://www.w3.org/2005/10/howto-favicon[^]
http://www.c-sharpcorner.com/uploadfile/afenster/add-a-favicon-to-your-Asp-Net-page/[^]
http://www.chami.com/tips/internet/110599i.html[^]
http://www.javascriptkit.com/howto/customicon.shtml[^]
 
Share this answer
 
Comments
Maciej Los 6-Jun-12 18:25pm    
Good answer, my 5!
Sandeep Mewara 7-Jun-12 16:18pm    
Thanks mac.
SoMad 6-Jun-12 18:34pm    
You got my 5 and I bookmarked your solution.

Soren Madsen
Sandeep Mewara 7-Jun-12 16:18pm    
Thanks Soren.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900