Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Ignore favicon.ico via mod_rewrite

Ignore favicon.ico via mod_rewrite

Do not forward request to index.php if it is favicon.ico request:

RewriteEngine On

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond ^(/?.+)$ !^favicon\.ico
RewriteRule . index.php
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.