Project

General

Profile

« Previous | Next » 

Revision 7971

web/vegpath/.htaccess: translate subdomain to prefix: Fixed bug where need to prepend %{DOCUMENT_ROOT} to the file path when testing it for existence

View differences:

web/vegpath/.htaccess
14 14

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

  
21 21
# don't rewrite existing paths

Also available in: Unified diff