source: www/.htaccess @ 1757

Last change on this file since 1757 was 1379, checked in by Sam Hocevar, 13 years ago
  • More information about the mailing-lists.
  • Property svn:keywords set to Id
File size: 980 bytes
Line 
1# $Id: .htaccess 1379 2006-11-12 21:48:16Z sam $
2
3# Activated modules
4RewriteEngine on
5
6# We talk utf8 here
7AddDefaultCharset 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
21AddType application/x-cgi-php .html
22Action application/x-cgi-php /cgi-bin/php4
23AddType text/css .css
24
25# Redirects for disallowed stuff
26RewriteRule ^.svn/.* /.svn/ [L]
27RewriteRule (.*)/.svn/.* /$1/.svn/ [L]
28
29# Redirects for manual and lists
30RewriteRule ^manual/$ /manual.html?page=index [L]
31RewriteRule ^manual/(.*)[.]html /manual.html?page=$1 [L]
32RewriteRule ^list/$ /list.html?page=threads [L]
33RewriteRule ^list/(.*)[.]html /list.html?page=$1 [L]
34RewriteRule ^list-svn/$ /list-svn.html?page=threads [L]
35RewriteRule ^list-svn/(.*)[.]html /list-svn.html?page=$1 [L]
36
37# Misc. redirects
38RewriteRule ^([^/]*).(gz|bz2|zip) /files/$1.$2 [R=permanent,L]
39RewriteRule ^images/(.*) /img/$1 [R=permanent,L]
40
Note: See TracBrowser for help on using the repository browser.