.htaccess 1.57 KB
Newer Older
Jean-Baptiste Kempf's avatar
Jean-Baptiste Kempf committed
1
## General configuration
2 3 4
ErrorDocument 404 /404.html
ErrorDocument 403 /403.html

5
# Big nasty kludge
6
AddType application/x-httpd-php .html .php3
Eric Petit's avatar
Eric Petit committed
7

8
RewriteEngine on
9 10 11
# yet another kludge to hide .svn directories
RewriteRule \.svn /404.html [L]

Jean-Baptiste Kempf's avatar
Jean-Baptiste Kempf committed
12 13 14 15 16
# directory/ -> directory/index.html
RewriteRule ^(.*)/$ $1/index.html
RewriteRule ^$ index.html


Jean-Baptiste Kempf's avatar
Jean-Baptiste Kempf committed
17 18 19 20 21 22 23 24 25 26 27 28 29 30
RewriteRule ^libdvbpsi/index.html http://www.videolan.org/developers/libdvbpsi.html [R=permanent,L]
RewriteRule ^libdvbpsi/libdvbpsi/.* http://www.videolan.org/developers/libdvbpsi/$1 [R=permanent,L]
RewriteRule ^libdvdcss/index.html http://www.videolan.org/developers/libdvdcss.html [R=permanent,L]
RewriteRule ^libdvdcss/libdvdcss/.* http://www.videolan.org/developers/libdvdcss/$1 [R=permanent,L]
RewriteRule ^libdvdplay/index.html http://www.videolan.org/developers/libdvdplay.html [R=permanent,L]
RewriteRule ^libdvdplay/libdvdplay/.* http://www.videolan.org/developers/libdvdplay/$1 [R=permanent,L]

RewriteRule ^vlc/index.html http://www.videolan.org/developers/vlc.html [R=permanent,L]
RewriteRule ^vlc/vlc/.* http://www.videolan.org/developers/vlc/$1 [R=permanent,L]
RewriteRule ^vls/index.html http://www.videolan.org/developers/vls.html [R=permanent,L]
RewriteRule ^vls/vls/.* http://www.videolan.org/developers/vls/$1 [R=permanent,L]

RewriteRule ^(.*) http://www.videolan.org/developers/$1

31
# fichier.html -> ../include/default.php3?page=fichier
32
RewriteRule ^(vlc/vlc/doc/.*html)$ $1 [L]
33 34
RewriteRule ^(libdvbpsi/libdvbpsi/doc/.*html)$ $1 [L]
RewriteRule ^(libdvdcss/libdvdcss/doc/.*html)$ $1 [L]
35
RewriteRule ^([^/]+)\.html$ include/rewrite.php3?page=$1