1 |
8066
|
aaronmk
|
RewriteEngine on
|
2 |
8405
|
aaronmk
|
RewriteOptions AllowNoSlash
|
3 |
8394
|
aaronmk
|
RewriteBase /CTFS/terms/
|
4 |
8066
|
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 #$0 ^(.*)$
|
21 |
|
|
RewriteRule ^.+$ ../_src/ctfs-comments_worksheet.xls%1 [discardpath,noescape,last,redirect]
|