Last change
on this file since 2224 was
2224,
checked in by Sam Hocevar, 15 years ago
|
|
-
Property svn:keywords set to
Id
|
File size:
1.1 KB
|
Rev | Line | |
---|
[934] | 1 | # $Id: .htaccess 2224 2008-02-02 10:11:48Z 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 | AddType application/x-cgi-php .html |
---|
[2200] | 22 | Action application/x-cgi-php /cgi-bin/php5 |
---|
[934] | 23 | AddType text/css .css |
---|
[2219] | 24 | AddType application/octet-stream .TAP |
---|
[934] | 25 | |
---|
| 26 | # Redirects for disallowed stuff |
---|
[1998] | 27 | RewriteRule ^.git/.* /.git/ [L] |
---|
[1120] | 28 | RewriteRule ^.svn/.* /.svn/ [L] |
---|
| 29 | RewriteRule (.*)/.svn/.* /$1/.svn/ [L] |
---|
[934] | 30 | |
---|
[1132] | 31 | # Redirects for manual and lists |
---|
[1122] | 32 | RewriteRule ^manual/$ /manual.html?page=index [L] |
---|
[1120] | 33 | RewriteRule ^manual/(.*)[.]html /manual.html?page=$1 [L] |
---|
[1134] | 34 | RewriteRule ^list/$ /list.html?page=threads [L] |
---|
[1132] | 35 | RewriteRule ^list/(.*)[.]html /list.html?page=$1 [L] |
---|
[1379] | 36 | RewriteRule ^list-svn/$ /list-svn.html?page=threads [L] |
---|
| 37 | RewriteRule ^list-svn/(.*)[.]html /list-svn.html?page=$1 [L] |
---|
[1120] | 38 | |
---|
[1138] | 39 | # Misc. redirects |
---|
[1140] | 40 | RewriteRule ^([^/]*).(gz|bz2|zip) /files/$1.$2 [R=permanent,L] |
---|
| 41 | RewriteRule ^images/(.*) /img/$1 [R=permanent,L] |
---|
[2224] | 42 | RewriteRule ^labs/img2oric.html /img2oric/ [R=permanent,L] |
---|
[1138] | 43 | |
---|
Note: See
TracBrowser
for help on using the repository browser.