Subscribe
Contact



AddThis Social Bookmark Button

Every time your browser loads an new url, it also request a file called 'favicon.ico' in the same subdirectory. This generates a LOT of errors in the Ruby on Rails logs of my app.

One way to avoid those errors is to redirect the browser to the root /favicon.ico file.
Just add this line in the /public/.htaccess file of your rails project :

 RewriteRule ^(.*)favicon.ico$ favicon.ico [QSA]

Do you use another method to resolve this problem ?


Commentaires :
Coren , Wed May 21 15:10:17 +0200 2008
Yep, a favicon in the layout + an icon tag in the atom feed.
#1

Add a comment :





© 2007 Eric Abouaf