Project

General

Profile

« Previous | Next » 

Revision 7975

web/vegpath/.htaccess: translate subdomain to prefix: HTTP_HOST RewriteCond: Don't capture part after . because it isn't used as a replacement (it used to be used for this when a now-unnecessary browser redirect was performed)

View differences:

web/vegpath/.htaccess
19 19
RewriteRule ^.*$ - [last]
20 20

  
21 21
# translate subdomain to prefix
22
RewriteCond %{HTTP_HOST} ^([^.]*)\.(.*)$
22
RewriteCond %{HTTP_HOST} ^([^.]*)\..*$
23 23
RewriteCond %{DOCUMENT_ROOT}/%1 -d [ornext]
24 24
RewriteCond %{DOCUMENT_ROOT}/%1 -l
25 25
# this RewriteRule won't be re-run

Also available in: Unified diff