Project

General

Profile

« Previous | Next » 

Revision 7979

web/vegpath/.htaccess: translate dot-/dash-paths to dirs: changed comment to indicate that these rules can (eventually) translate any dot-/dash-path, not just the head

View differences:

web/vegpath/.htaccess
34 34
RewriteCond %{DOCUMENT_ROOT}/%1/.htaccess -f
35 35
RewriteRule ^.*$ %1/$0 [last,nosubreq] # avoid infinite recursion
36 36

  
37
# translate dot-path head to dir
37
# translate dot-paths to dirs
38 38
RewriteCond %{DOCUMENT_ROOT}/$1 -d [ornext]
39 39
RewriteCond %{DOCUMENT_ROOT}/$1 -l
40 40
RewriteRule ^([^.]*)\.(.*)$ $1/$2 [last]
41 41

  
42
# translate dash-path head to dir
42
# translate dash-paths to dirs
43 43
RewriteCond %{DOCUMENT_ROOT}/$1 -d [ornext]
44 44
RewriteCond %{DOCUMENT_ROOT}/$1 -l
45 45
RewriteRule ^([^.-]*)-(.*)$ $1/$2 [last]

Also available in: Unified diff