Revision 7978
Added by Aaron Marcuse-Kubitza about 12 years ago
.htaccess | ||
---|---|---|
24 | 24 |
RewriteCond %{DOCUMENT_ROOT}/%1/%2 -l |
25 | 25 |
# this RewriteRule won't be re-run |
26 | 26 |
RewriteCond %{DOCUMENT_ROOT}/%1/%2/.htaccess -f |
27 |
RewriteRule ^.*$ %1/%2/$0 [nosubreq] # avoid infinite recursion |
|
27 |
RewriteRule ^.*$ %1/%2/$0 [last,nosubreq] # avoid infinite recursion
|
|
28 | 28 |
|
29 | 29 |
# translate 1-level subdomain to prefix |
30 | 30 |
RewriteCond %{HTTP_HOST} ^([^.]*)\..*$ |
... | ... | |
32 | 32 |
RewriteCond %{DOCUMENT_ROOT}/%1 -l |
33 | 33 |
# this RewriteRule won't be re-run |
34 | 34 |
RewriteCond %{DOCUMENT_ROOT}/%1/.htaccess -f |
35 |
RewriteRule ^.*$ %1/$0 [nosubreq] # avoid infinite recursion |
|
35 |
RewriteRule ^.*$ %1/$0 [last,nosubreq] # avoid infinite recursion
|
|
36 | 36 |
|
37 | 37 |
# translate dot-path head to dir |
38 | 38 |
RewriteCond %{DOCUMENT_ROOT}/$1 -d [ornext] |
Also available in: Unified diff
web/vegpath/.htaccess: translate subdomain to prefix: Use last to avoid further rewriting, since these rules make the destination a /-path