Revision 7966
Added by Aaron Marcuse-Kubitza almost 12 years ago
.htaccess | ||
---|---|---|
13 | 13 |
RewriteCond %{HTTP_HOST} ^www\.(.*)$ |
14 | 14 |
RewriteRule ^.*$ http://%1/$0 [redirect] |
15 | 15 |
|
16 |
# translate subdomain to path prefix |
|
17 |
RewriteCond %{HTTP_HOST} ^(.+)\.([^.]*\.[^.]*)$ |
|
18 |
RewriteRule ^.*$ http://%2/%1.$0 [redirect] |
|
19 |
|
|
16 | 20 |
# don't rewrite existing paths |
17 | 21 |
RewriteCond %{REQUEST_FILENAME} -d [ornext] |
18 | 22 |
RewriteCond %{REQUEST_FILENAME} -f [ornext] |
Also available in: Unified diff
web/vegpath/.htaccess: Translate subdomain to path prefix