Avoid 404 errors in the logs for "favicon.ico" all the time.
[www.jankratochvil.net.git] / .htaccess
index 10557f6..34a7776 100644 (file)
--- a/.htaccess
+++ b/.htaccess
@@ -45,6 +45,7 @@ AddType application/zip .zip
        RewriteRule ^sw(|/.*)$ http://%{SERVER_NAME}/project$1 [R=301,L]
        RewriteRule ^projects(|/.*)$ http://%{SERVER_NAME}/project$1 [R=301,L]
        <IfModule !mod_perl.c>
+               RewriteRule ^favicon[.]ico$ /My/Status.pm?code=404 [P,L]
                RewriteRule ^(.*)[.]html[.]pl(|/.*)$ http://%{SERVER_NAME}/$1.pm$2 [R=301,L]
                RewriteRule ^(.*?)/+Index[.]pm$ http://%{SERVER_NAME}/$1/ [R=301,L]
                RewriteCond %{REQUEST_FILENAME}/Index.pm -f