Stop Annoying favicon.ico 404 errors

If you’re like me, you don’t like cluttering your main folder with unnecessary files. This is why I hate that some browsers are still looking for ‘favicon.ico’ in the main folder even when you indicate in <head> that’s not where the agent should be looking…

Here is a way to eliminate those PITA 404’s from your error logs…

RewriteEngine On
RewriteRule ^favicon.ico$ folder/path/favicon.ico [R=301,L]

Hope it helps 🙂

Leave a Reply

Your email address will not be published. Required fields are marked *