Fix .htaccess when used with MultiViews
[phorkie.git] / www / .htaccess
1 # http://serverfault.com/questions/57243/apache-mod-rewrite-fails-when-file-by-same-name-exists
2 Options -MultiViews
3
4 RewriteEngine On
5 RewriteBase /
6 #RewriteCond %{REQUEST_FILENAME} -f
7
8 RewriteRule ^([0-9]+)$ display.php?id=$1
9 RewriteRule ^([0-9]+)/delete$ delete.php?id=$1
10 RewriteRule ^([0-9]+)/delete/confirm$ delete.php?id=$1&confirm=1
11 RewriteRule ^([0-9]+)/doap$ doap.php?id=$1
12 RewriteRule ^([0-9]+)/edit$ edit.php?id=$1
13 RewriteRule ^([0-9]+)/fork$ fork.php?id=$1
14 RewriteRule ^([0-9]+)/raw/(.+)$ raw.php?id=$1&file=$2
15 RewriteRule ^([0-9]+)/rev/(.+)$ revision.php?id=$1&rev=$2
16 RewriteRule ^([0-9]+)/rev-raw/(.+)/(.+)$ raw.php?id=$1&rev=$2&file=$3
17 RewriteRule ^([0-9]+)/tool/([^/]+)/(.+)$ tool.php?id=$1&tool=$2&file=$3
18
19 RewriteRule ^fork-remote$ fork-remote.php
20 RewriteRule ^new$ new.php
21
22 RewriteRule ^feed/new$ feed-new.php
23 RewriteRule ^feed/updated$ feed-updated.php
24
25 RewriteRule ^list$ list.php
26 RewriteRule ^list/([0-9]+)$ list.php?page=$1
27
28 RewriteRule ^search$ search.php
29 RewriteRule ^search/([0-9]+)$ search.php?page=$1
30
31 RewriteRule ^login$ login.php
32 RewriteRule ^user$ user.php