1 | # $Id: .htaccess 2241 2008-02-26 16:30:03Z sam $ |
---|
2 | |
---|
3 | # Activated modules |
---|
4 | RewriteEngine on |
---|
5 | |
---|
6 | # We talk utf8 here |
---|
7 | AddDefaultCharset utf-8 |
---|
8 | |
---|
9 | # Disallowed files: .htaccess, .htpasswd, .svn etc. |
---|
10 | <Files ~ "^\.ht"> |
---|
11 | Order allow,deny |
---|
12 | Deny from all |
---|
13 | </Files> |
---|
14 | |
---|
15 | <Files ~ "^\.svn"> |
---|
16 | Order allow,deny |
---|
17 | Deny from all |
---|
18 | </Files> |
---|
19 | |
---|
20 | # MIME Types |
---|
21 | <IfModule mod_action.c> |
---|
22 | AddType application/x-cgi-php .html |
---|
23 | Action application/x-cgi-php /cgi-bin/php5 |
---|
24 | </IfModule> |
---|
25 | <IfModule !mod_action.c> |
---|
26 | AddType application/x-httpd-php .html |
---|
27 | </IfModule> |
---|
28 | AddType text/css .css |
---|
29 | AddType application/octet-stream .TAP |
---|
30 | |
---|
31 | # Redirects for disallowed stuff |
---|
32 | RewriteRule ^.git/.* /.git/ [L] |
---|
33 | RewriteRule ^.svn/.* /.svn/ [L] |
---|
34 | RewriteRule (.*)/.svn/.* /$1/.svn/ [L] |
---|
35 | |
---|
36 | # Redirects for manual and lists |
---|
37 | RewriteRule ^manual/$ /manual.html?page=index [L] |
---|
38 | RewriteRule ^manual/(.*)[.]html /manual.html?page=$1 [L] |
---|
39 | RewriteRule ^list/$ /list.html?page=threads [L] |
---|
40 | RewriteRule ^list/(.*)[.]html /list.html?page=$1 [L] |
---|
41 | RewriteRule ^list-svn/$ /list-svn.html?page=threads [L] |
---|
42 | RewriteRule ^list-svn/(.*)[.]html /list-svn.html?page=$1 [L] |
---|
43 | RewriteRule ^list-trac/$ /list-trac.html?page=threads [L] |
---|
44 | RewriteRule ^list-trac/(.*)[.]html /list-trac.html?page=$1 [L] |
---|
45 | |
---|
46 | # Misc. redirects |
---|
47 | RewriteRule ^([^/]*).(gz|bz2|zip) /files/$1.$2 [R=permanent,L] |
---|
48 | RewriteRule ^images/(.*) /img/$1 [R=permanent,L] |
---|
49 | RewriteRule ^labs/img2oric.html /img2oric/ [R=permanent,L] |
---|
50 | RewriteRule ^devel.html /wiki [R=permanent,L] |
---|
51 | RewriteRule ^cgi-bin/viewcvs.cgi /browser [R=permanent,L] |
---|
52 | |
---|
53 | # Redirects for Trac - FIXME |
---|
54 | RewriteCond %{REQUEST_FILENAME} !-f |
---|
55 | RewriteCond %{REQUEST_FILENAME} !-d |
---|
56 | RewriteRule ^(.*)$ /cgi-bin/trac.cgi/$1 [PT,L,E=SCRIPT_NAME:/] |
---|
57 | |
---|