How to get the favicon to work


This wasn’t as easy as some blogs out there would have it!


Get a JPEG image.

Then, go to a website which converts it to a favicon. For example,

FavIcon from Pics

Name it favicon.gif .

Where to Put Icon

in document root

If your web server has virtual hosts, you’ll have more than one document root.


Put following in head section of your web pages.

<link rel="icon" href="/favicon.gif" type="image/gif">


Originally, the reason I worked on this matter was because of getting an Apache log warning saying a request for favicon.ico went unfulfilled. Maybe, I should change the icon’s name to favicon.ico.


About samehramzylabib

See About on
This entry was posted in CodeIgniter, Configure My Systems, Other. Bookmark the permalink.


Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s