Revision 13667
Added by Aaron Marcuse-Kubitza over 10 years ago
.htaccess | ||
---|---|---|
49 | 49 |
RewriteRule ^ - [env=REQUEST_URI_no_extra_/:%1] |
50 | 50 |
# translate |
51 | 51 |
RewriteCond %{HTTP_HOST} !=vegbiendev.nceas.ucsb.edu |
52 |
RewriteCond %{HTTP_HOST} ^(.*)\.([^.]*\.[^.]*)$
|
|
52 |
RewriteCond %{HTTP_HOST} ^(.*)\.([^.]+\.[^.]+)\.?$
|
|
53 | 53 |
RewriteRule ^.*$ %{REQUEST_SCHEME}://%2/${subdomain2path:%1}%{ENV:REQUEST_URI_no_extra_/} [discardpath,last,noescape,qsappend] |
54 | 54 |
|
55 | 55 |
# use separate lowercase version when available |
Also available in: Unified diff
bugfix: web/.htaccess: subdomains: each path element must be non-empty, to avoid matching a trailing . incorrectly