Revision 14502
Added by Aaron Marcuse-Kubitza over 10 years ago
trunk/web/.htaccess | ||
---|---|---|
13 | 13 |
|
14 | 14 |
SetEnvIf Request_URI ^ innermost_dir=/ |
15 | 15 |
|
16 |
# expand top-level symlinks to avoid RewriteBase issues |
|
17 |
RewriteCond %{DOCUMENT_ROOT}/$1 -l |
|
18 |
RewriteRule ^([^/]+)(.*)$ ${readlink:$1}$2 [discardpath,last,noescape,qsappend] |
|
19 |
# extract 1st dir (the symlink); note that -l does not support trailing / |
|
20 |
# last: rewrite in the new subdir instead of applying this dir's rules |
|
21 |
|
|
16 | 22 |
# auto-detect dotpath in query string (having a . or & before any = ) |
17 | 23 |
# you can prepend . to force a dotpath, or & to force a query param |
18 | 24 |
# must come before username prefix parsing, because it requires the leading [.&] |
Also available in: Unified diff
bugfix: web/.htaccess: need to expand top-level symlinks to avoid RewriteBase issues