Project

General

Profile

« Previous | Next » 

Revision 13620

bugfix: web/.htaccess: auto-detect dotpath in query string: don't exclude dotpaths that come before a normal query string (&k=v...)

View differences:

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

  
48
# auto-detect dotpath in query string (having a . before any = )
48
# auto-detect dotpath in query string (having a . or & before any = )
49 49
# you can prepend . to force a dotpath, or & to force a query param
50
RewriteCond %{QUERY_STRING} ^(?!\.)[^&]+$
51
	# . not already prepended, does not contain & , and non-empty
52
RewriteCond %{QUERY_STRING} ^[^=]*(?:\.|$)
53
	# . before any =
50
RewriteCond %{QUERY_STRING} ^(?![.&]).+$
51
	# . not already prepended, does not start with & , and non-empty
52
RewriteCond %{QUERY_STRING} ^[^=]*(?:[.&]|$)
53
	# . or & before any =
54 54
RewriteRule ^.*$ $0?.%{QUERY_STRING} [discardpath,noescape]
55 55

  
56 56
## parse dotpath in query string

Also available in: Unified diff