Project

General

Profile

« Previous | Next » 

Revision 7988

web/vegpath/.htaccess: translate dot-paths to dirs: translate all levels of dot-paths present in the filesystem rather than just the first level, by using the [next] RewriteRule flag (http://httpd.apache.org/docs/current/rewrite/flags.html#flag_n). This avoids the need to translate further levels of dot-paths in each subdir's .htaccess.

View differences:

web/vegpath/.htaccess
28 28
# translate dot-paths to dirs
29 29
RewriteCond %{DOCUMENT_ROOT}/$1 -d [ornext]
30 30
RewriteCond %{DOCUMENT_ROOT}/$1 -l
31
RewriteRule ^([^/.]*)\.(.*)$ $1/$2 [last]
31
RewriteRule ^([^.]*)\.(.*)$ $1/$2 [next]
32
	# next: if match, repeat until no more replacements
32 33

  
33 34
# non-filesystem paths
34 35
ErrorDocument 404 /

Also available in: Unified diff