Project

General

Profile

1 8063 aaronmk
RewriteEngine on
2 8405 aaronmk
RewriteOptions AllowNoSlash
3 8409 aaronmk
RewriteBase /VegBIEN/Redmine/wiki/
4 8063 aaronmk
5 8363 aaronmk
# parse dotpath in the query string
6
RewriteCond %{QUERY_STRING} ^(?!&).+$
7 8399 aaronmk
RewriteCond %{REQUEST_URI} ^(.*?)(?:/index(?:\.\w+)?)?$
8 8400 aaronmk
RewriteRule ^.*$ /dotpath%1 [discardpath,noescape,last]
9 8363 aaronmk
10 8376 aaronmk
# don't rewrite existing paths
11
RewriteCond %{REQUEST_FILENAME} -d [ornext]
12
RewriteCond %{REQUEST_FILENAME} -f
13 8407 aaronmk
RewriteRule ^(?!/).+$ - [discardpath,noescape,last]
14 8376 aaronmk
15 8406 aaronmk
# handle DirectoryIndex subrequests
16
RewriteRule ^index$() $1 [discardpath,noescape]
17
18 8407 aaronmk
# dir without trailing / is provided as an absolute filesystem path
19
RewriteCond $0 ^(?!/)(.+)$ [ornext]
20
RewriteCond Database_development ^(.*)$
21 8409 aaronmk
RewriteRule ^.+$ ../main/wiki/%1 [discardpath,noescape,last]