1 |
11180
|
aaronmk
|
RewriteEngine on
|
2 |
|
|
RewriteOptions AllowNoSlash InheritBefore
|
3 |
|
|
|
4 |
11185
|
aaronmk
|
SetEnvIf Request_URI ^ innermost_dir=Brad_Boyle
|
5 |
11180
|
aaronmk
|
|
6 |
11186
|
aaronmk
|
# auto-add trailing / (dir without trailing / is absolute filesystem path)
|
7 |
|
|
RewriteCond %{ENV:innermost_dir} =Brad_Boyle
|
8 |
|
|
RewriteRule ^/ %{REQUEST_URI}/ [discardpath,last,noescape,qsappend,redirect]
|
9 |
|
|
|
10 |
11180
|
aaronmk
|
# dir without trailing / is provided as an absolute filesystem path
|
11 |
11185
|
aaronmk
|
RewriteCond %{ENV:innermost_dir} =Brad_Boyle
|
12 |
11180
|
aaronmk
|
RewriteCond $0 ^/ [ornext]
|
13 |
|
|
RewriteCond /$0 ^(.*)$
|
14 |
|
|
RewriteRule ^.+$ attribution%1 [discardpath,last,noescape,qsappend]
|