Project

General

Profile

1 8066 aaronmk
RewriteEngine on
2 8405 aaronmk
RewriteOptions AllowNoSlash
3 8394 aaronmk
RewriteBase /CTFS/schema/
4 8066 aaronmk
5 8444 aaronmk
SetEnvIf Request_URI ^ innermost_dir=schema
6
7 8363 aaronmk
# parse dotpath in the query string
8
RewriteCond %{QUERY_STRING} ^(?!&).+$
9 8399 aaronmk
RewriteCond %{REQUEST_URI} ^(.*?)(?:/index(?:\.\w+)?)?$
10 8400 aaronmk
RewriteRule ^.*$ /dotpath%1 [discardpath,noescape,last]
11 8363 aaronmk
12 8376 aaronmk
# don't rewrite existing paths
13
RewriteCond %{REQUEST_FILENAME} -d [ornext]
14
RewriteCond %{REQUEST_FILENAME} -f
15 8407 aaronmk
RewriteRule ^(?!/).+$ - [discardpath,noescape,last]
16 8376 aaronmk
17 8406 aaronmk
# handle DirectoryIndex subrequests
18
RewriteRule ^index$() $1 [discardpath,noescape]
19
20 8407 aaronmk
# dir without trailing / is provided as an absolute filesystem path
21 8445 aaronmk
RewriteCond %{ENV:innermost_dir} =schema
22 8407 aaronmk
RewriteCond $0 ^/ [ornext]
23
RewriteCond #$0 ^(.*)$
24
RewriteRule ^.+$ ../_archive/DBv5.txt%1 [discardpath,noescape,last,redirect]