Revision 7972
Added by Aaron Marcuse-Kubitza about 12 years ago
.htaccess | ||
---|---|---|
16 | 16 |
RewriteCond %{HTTP_HOST} ^([^.]*)\.(.*)$ |
17 | 17 |
RewriteCond %{DOCUMENT_ROOT}/%1 -d [ornext] |
18 | 18 |
RewriteCond %{DOCUMENT_ROOT}/%1 -l |
19 |
# this RewriteRule won't be re-run |
|
20 |
RewriteCond %{DOCUMENT_ROOT}/%1/.htaccess -f |
|
19 | 21 |
RewriteRule ^.*$ %1/$0 [nosubreq] # avoid infinite recursion |
20 | 22 |
|
21 | 23 |
# don't rewrite existing paths |
Also available in: Unified diff
web/vegpath/.htaccess: translate subdomain to prefix: Fixed bug where can only run this is if the dest subdir has a .htaccess file, because this prevents the RewriteRule from being re-run for the subdir (which would lead to infinite recursion because the rule is not idempotent)