recyclebin: /srv/git-recyclebin -> /srv/git/_recyclebin
[girocco.git] / htaccess
blobc5d75070763edbf93d78f6998c6535adf1bd0ca2
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 RewriteCond %{REQUEST_FILENAME} !-d
21 RewriteRule .*                  -               [R=404,L]
23 # Hide indextext.html, *.perl, *.pm and *.conf files
24 # They have no business being fetched remotely
25 <FilesMatch (?:^(?:indextext.html)$)|(?:\.(?:perl|pm|conf)$)>
26         Redirect 404 /
27 </FilesMatch>