Project

General

Profile

« Previous | Next » 

Revision 7969

web/vegpath/.htaccess: translate subdomain to prefix: Set nosubreq to avoid infinite recursion (the RewriteRule is not idempotent)

View differences:

.htaccess
16 16
RewriteCond %{HTTP_HOST} ^([^.]*)\.(.*)$
17 17
RewriteCond %1 -d [ornext]
18 18
RewriteCond %1 -l
19
RewriteRule ^.*$ %1/$0
19
RewriteRule ^.*$ %1/$0 [nosubreq] # avoid infinite recursion
20 20

  
21 21
# don't rewrite existing paths
22 22
RewriteCond %{REQUEST_FILENAME} -d [ornext]

Also available in: Unified diff