Project

General

Profile

« Previous | Next » 

Revision 8500

web/.htaccess: auto-detect dotpath in query string (having a . before any = ) and mark it using a leading . . this is done as a separate step so that the dotpath is already explicitly marked as such when it's parsed.

View differences:

web/.htaccess
37 37
RewriteRule ^([^/]*)(.*)$ %0$2 [discardpath,noescape,last,qsappend]
38 38
	# last: rewrite in the new subdir instead of applying this dir's rules
39 39

  
40
# auto-detect dotpath in query string (having a . before any = )
41
# you can prepend . to force a dotpath, or & to force a query param
42
RewriteCond %{QUERY_STRING} ^(?!\.)[^&]+
43
RewriteCond %0 ^[^=]*(?:\.|$)
44
RewriteRule ^ ?.%{QUERY_STRING} [discardpath,noescape]
45

  
40 46
# parse dotpath in query string (having a . before any = )
41 47
# you can prepend . to force a dotpath, or & to force a query param
42 48
RewriteRule ^dotpath - [discardpath,noescape,last,qsappend]

Also available in: Unified diff