source: www/.htaccess @ 2231

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
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
22<IfModule mod_action.c>
23  Action application/x-cgi-php /cgi-bin/php5
24</IfModule>
25AddType text/css .css
26AddType application/octet-stream .TAP
27
28# Redirects for disallowed stuff
29RewriteRule ^.git/.* /.git/ [L]
30RewriteRule ^.svn/.* /.svn/ [L]
31RewriteRule (.*)/.svn/.* /$1/.svn/ [L]
32
33# Redirects for manual and lists
34RewriteRule ^manual/$ /manual.html?page=index [L]
35RewriteRule ^manual/(.*)[.]html /manual.html?page=$1 [L]
36RewriteRule ^list/$ /list.html?page=threads [L]
37RewriteRule ^list/(.*)[.]html /list.html?page=$1 [L]
38RewriteRule ^list-svn/$ /list-svn.html?page=threads [L]
39RewriteRule ^list-svn/(.*)[.]html /list-svn.html?page=$1 [L]
40
41# Misc. redirects
42RewriteRule ^([^/]*).(gz|bz2|zip) /files/$1.$2 [R=permanent,L]
43RewriteRule ^images/(.*) /img/$1 [R=permanent,L]
44RewriteRule ^labs/img2oric.html /img2oric/ [R=permanent,L]
45
Note: See TracBrowser for help on using the repository browser.