Revision 7982
Added by Aaron Marcuse-Kubitza almost 12 years ago
web/vegpath/.htaccess | ||
---|---|---|
20 | 20 |
|
21 | 21 |
# translate 2-level subdomain to prefix |
22 | 22 |
RewriteCond %{HTTP_HOST} ^([^.]*)\.([^.]*)\..*$ |
23 |
RewriteCond %{DOCUMENT_ROOT}/%1/%2 -d [ornext]
|
|
24 |
RewriteCond %{DOCUMENT_ROOT}/%1/%2 -l
|
|
23 |
RewriteCond %{DOCUMENT_ROOT}/%2/%1 -d [ornext]
|
|
24 |
RewriteCond %{DOCUMENT_ROOT}/%2/%1 -l
|
|
25 | 25 |
# this RewriteRule won't be re-run |
26 |
RewriteCond %{DOCUMENT_ROOT}/%1/%2/.htaccess -f
|
|
27 |
RewriteRule ^.*$ %1/%2/$0 [last,nosubreq] # avoid infinite recursion
|
|
26 |
RewriteCond %{DOCUMENT_ROOT}/%2/%1/.htaccess -f
|
|
27 |
RewriteRule ^.*$ %2/%1/$0 [last,nosubreq] # avoid infinite recursion
|
|
28 | 28 |
|
29 | 29 |
# translate 1-level subdomain to prefix |
30 | 30 |
RewriteCond %{HTTP_HOST} ^([^.]*)\..*$ |
Also available in: Unified diff
web/vegpath/.htaccess: translate 2-level subdomain to prefix: interpret subdomains in (standard) reverse instead of forward order (e.g. history.DwC instead of DwC.history)