htaccess: add note about making mod_status work
[girocco.git] / htaccess
blob64667c1650f9ba142bae3eb5199589dbb0bea9bc
1 RewriteEngine On
3 RewriteCond %{HTTP_USER_AGENT}  (Slurp|Bot|Spider) [NC]
4 RewriteRule ^r/ -                               [F,L]
6 RewriteCond %{HTTP_USER_AGENT}  (Slurp|Bot|Spider) [NC]
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}  (Slurp|Bot|Spider) [NC]
12 RewriteRule /(blame|blob_plain|blobdiff|diff|snapshot|commitdiff|history|shortlog)/ - [F,L]
14 RewriteBase /
15 RewriteCond %{HTTP_USER_AGENT}  (Slurp|Bot|Spider) [NC]
16 RewriteCond %{QUERY_STRING}     (.*h=.*;)hb=[^;]*(.*)
17 RewriteRule (.*)                $1?%1%2         [R=303,NE,L]
19 RewriteCond %{REQUEST_FILENAME} !-f
20 RewriteCond %{REQUEST_FILENAME} !-d
21 # If you have mod_status enabled AND this host ends up being the default
22 # host (see `apache2ctl -S` output), then you will probably need to
23 # uncomment the next line in order to make `apache2ctl status` work
24 #RewriteCond %{REQUEST_URI}     !=/server-status
25 RewriteRule .*                  -               [R=404,L]