install: make sure to record full paths for utilities
[girocco.git] / cgi / htaccess
blob1bc256c3c4bf911b6acdba2e54d14f83b8963265
1 # cgi/htaccess
2 # see htaccess for general restrictions
4 RewriteEngine On
5 RewriteBase /
7 RewriteCond %{HTTP_USER_AGENT}  (Slurp|Bot|Spider) [NC]
8 RewriteCond %{QUERY_STRING}     a=(blame|blame_data|blame_incremental|blob_plain|blobdiff|diff|snapshot|commitdiff|history|refs|shortlog) [OR]
9 RewriteCond %{QUERY_STRING}     a=log.*f=
10 RewriteRule .*                  -               [NS,F,L]
12 RewriteCond %{HTTP_USER_AGENT}  (Slurp|Bot|Spider) [NC]
13 RewriteRule /(blame|blame_data|blame_incremental|blob_plain|blobdiff|bundles|diff|snapshot|commitdiff|history|refs|shortlog)(/|$) - [NS,F,L]
15 RewriteCond %{HTTP_USER_AGENT}  (Slurp|Bot|Spider) [NC]
16 RewriteCond %{QUERY_STRING}     (.*h=.*;)hb=[^;]*(.*)
17 RewriteRule (.*)                $1?%1%2         [NS,R=303,NE,L]