Revision 13615
Added by Aaron Marcuse-Kubitza over 10 years ago
.htaccess | ||
---|---|---|
13 | 13 |
|
14 | 14 |
SetEnvIf Request_URI ^ innermost_dir=/ |
15 | 15 |
|
16 |
# handle username-based prefix subpaths of the form "subpath@url?" |
|
17 |
# supports multiple @ and nested . : a@b.c@url? -> url?b.c.a |
|
18 |
# better than subpath.host because case is preserved and special chars allowed |
|
19 |
# must require trailing ? , to avoid needing login to view the page itself |
|
20 |
# must come before other redirects, because they lose the username |
|
21 |
RewriteCond %{THE_REQUEST} "\? \S+$" |
|
22 |
RewriteRule ^ username_prefix.php [discardpath,last,noescape,qsappend] |
|
23 |
|
|
16 | 24 |
# remove www subdomain |
17 | 25 |
RewriteCond %{HTTP_HOST} ^www\.(.*)$ |
18 | 26 |
RewriteRule ^.*$ %{REQUEST_SCHEME}://%1%{REQUEST_URI} [discardpath,last,noescape,qsappend] |
Also available in: Unified diff
web/.htaccess: handle username-based prefix subpaths (of the form "subpath@url?") for all paths rather than just for the root (which were handled by index.php)