Project

General

Profile

« Previous | Next » 

Revision 8390

web/.htaccess: use separate lowercase version when available: Support paths without a trailing /

View differences:

web/.htaccess
26 26
RewriteCond %{DOCUMENT_ROOT}/$1 !-d
27 27
RewriteCond .${tolower:$1} ^.*$
28 28
RewriteCond %{DOCUMENT_ROOT}/%0 -d
29
RewriteRule ^([^/]*)(/.*)$ %0$2 [discardpath,noescape,last]
29
RewriteRule ^([^/]*)(.*)$ %0$2 [discardpath,noescape,last]
30 30
	# last: rewrite in the new subdir instead of applying this dir's rules
31 31

  
32 32
# parse dotpath in the query string

Also available in: Unified diff