htaccess: suppress 'File does not exist' error log messages
[girocco.git] / htaccess
blob051b461e2296afd4ff85d20300be8b2543e0d588
1 RewriteEngine On
3 RewriteCond %{HTTP_USER_AGENT}  ([sS]lurp|[bB]ot|[sS]pider)
4 RewriteRule ^r/ -                               [F,L]
6 RewriteCond %{HTTP_USER_AGENT}  ([sS]lurp|[bB]ot|[sS]pider)
7 RewriteCond %{QUERY_STRING}     a=(blame|blob_plain|blobdiff|diff|snapshot|commitdiff|history|shortlog) [OR]
8 RewriteCond %{QUERY_STRING}     a=log.*f=
9 RewriteRule .*                  -               [F,L]
11 RewriteCond %{HTTP_USER_AGENT}  ([sS]lurp|[bB]ot|[sS]pider)
12 RewriteRule /(blame|blob_plain|blobdiff|diff|snapshot|commitdiff|history|shortlog)/ - [F,L]
14 RewriteBase /
15 RewriteCond %{HTTP_USER_AGENT}  ([sS]lurp|[bB]ot|[sS]pider)
16 RewriteCond %{QUERY_STRING}     (.*h=.*;)hb=[^;]*(.*)
17 RewriteRule (.*)                $1?%1%2         [R=303,NE,L]
19 RewriteCond %{REQUEST_FILENAME} !-f
20 RewriteRule .*                  -               [R=404,L]