1 |
8824
|
aaronmk
|
RewriteEngine on
|
2 |
|
|
RewriteOptions AllowNoSlash InheritBefore
|
3 |
|
|
|
4 |
|
|
SetEnvIf Request_URI ^ innermost_dir=tables
|
5 |
|
|
|
6 |
|
|
# dir without trailing / is provided as an absolute filesystem path
|
7 |
|
|
RewriteCond %{ENV:innermost_dir} =tables
|
8 |
|
|
RewriteCond $0 ^/ [ornext]
|
9 |
|
|
RewriteCond ?&$0 ^(.*)$
|
10 |
13623
|
aaronmk
|
RewriteRule ^.+$ /wiki/CTFS%1 [chain,discardpath,noescape,qsappend]
|
11 |
|
|
# qsappend does not support fragment, so append it separately
|
12 |
|
|
RewriteCond %{QUERY_STRING} ="" [ornext]
|
13 |
|
|
RewriteCond ?%{QUERY_STRING} ^.*$
|
14 |
|
|
RewriteRule ^.*$ $0%0#ERD [discardpath,last,noescape,redirect]
|