Revision 7976
Added by Aaron Marcuse-Kubitza almost 12 years ago
.htaccess | ||
---|---|---|
18 | 18 |
RewriteCond %{REQUEST_FILENAME} -l |
19 | 19 |
RewriteRule ^.*$ - [last] |
20 | 20 |
|
21 |
# translate subdomain to prefix |
|
21 |
# translate 2-level subdomain to prefix |
|
22 |
RewriteCond %{HTTP_HOST} ^([^.]*)\.([^.]*)\..*$ |
|
23 |
RewriteCond %{DOCUMENT_ROOT}/%1/%2 -d [ornext] |
|
24 |
RewriteCond %{DOCUMENT_ROOT}/%1/%2 -l |
|
25 |
# this RewriteRule won't be re-run |
|
26 |
RewriteCond %{DOCUMENT_ROOT}/%1/%2/.htaccess -f |
|
27 |
RewriteRule ^.*$ %1/%2/$0 [nosubreq] # avoid infinite recursion |
|
28 |
|
|
29 |
# translate 1-level subdomain to prefix |
|
22 | 30 |
RewriteCond %{HTTP_HOST} ^([^.]*)\..*$ |
23 | 31 |
RewriteCond %{DOCUMENT_ROOT}/%1 -d [ornext] |
24 | 32 |
RewriteCond %{DOCUMENT_ROOT}/%1 -l |
Also available in: Unified diff
web/vegpath/.htaccess: translate both 1-level and 2-level subdomains to dir prefixes