source: www/.htaccess @ 2241

Last change on this file since 2241 was 2241, checked in by sam, 7 years ago
  • Trac list archives.
  • Property svn:keywords set to Id
File size: 1.6 KB
Line 
1# $Id$
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
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>
28AddType text/css .css
29AddType application/octet-stream .TAP
30
31# Redirects for disallowed stuff
32RewriteRule ^.git/.* /.git/ [L]
33RewriteRule ^.svn/.* /.svn/ [L]
34RewriteRule (.*)/.svn/.* /$1/.svn/ [L]
35
36# Redirects for manual and lists
37RewriteRule ^manual/$ /manual.html?page=index [L]
38RewriteRule ^manual/(.*)[.]html /manual.html?page=$1 [L]
39RewriteRule ^list/$ /list.html?page=threads [L]
40RewriteRule ^list/(.*)[.]html /list.html?page=$1 [L]
41RewriteRule ^list-svn/$ /list-svn.html?page=threads [L]
42RewriteRule ^list-svn/(.*)[.]html /list-svn.html?page=$1 [L]
43RewriteRule ^list-trac/$ /list-trac.html?page=threads [L]
44RewriteRule ^list-trac/(.*)[.]html /list-trac.html?page=$1 [L]
45
46# Misc. redirects
47RewriteRule ^([^/]*).(gz|bz2|zip) /files/$1.$2 [R=permanent,L]
48RewriteRule ^images/(.*) /img/$1 [R=permanent,L]
49RewriteRule ^labs/img2oric.html /img2oric/ [R=permanent,L]
50RewriteRule ^devel.html /wiki [R=permanent,L]
51RewriteRule ^cgi-bin/viewcvs.cgi /browser [R=permanent,L]
52
53# Redirects for Trac - FIXME
54RewriteCond %{REQUEST_FILENAME} !-f
55RewriteCond %{REQUEST_FILENAME} !-d
56RewriteRule ^(.*)$ /cgi-bin/trac.cgi/$1 [PT,L,E=SCRIPT_NAME:/]
57
Note: See TracBrowser for help on using the repository browser.