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