1
|
RewriteEngine on
|
2
|
RewriteOptions AllowNoSlash InheritBefore
|
3
|
|
4
|
SetEnvIf Request_URI ^ innermost_dir=Brad_Boyle
|
5
|
|
6
|
# 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
|
# dir without trailing / is provided as an absolute filesystem path
|
11
|
RewriteCond %{ENV:innermost_dir} =Brad_Boyle
|
12
|
RewriteCond $0 ^/ [ornext]
|
13
|
RewriteCond /$0 ^(.*)$
|
14
|
RewriteRule ^.+$ attribution%1 [discardpath,last,noescape,qsappend]
|