Project

General

Profile

« Previous | Next » 

Revision 13672

web/.htaccess: auto-detect dotpath: removed handling of no longer used @ prefix (used to be used by username-based prefix subpaths)

View differences:

.htaccess
16 16
# auto-detect dotpath in query string (having a . or & before any = )
17 17
# you can prepend . to force a dotpath, or & to force a query param
18 18
# must come before username prefix parsing, because it requires the leading [.&]
19
RewriteCond %{QUERY_STRING} ^(?!@?[.&]).+$
19
RewriteCond %{QUERY_STRING} ^(?![.&]).+$
20 20
	# [.&] not already prepended and non-empty
21
RewriteCond %{QUERY_STRING} ^@?[^=]*(?:[.&]|$)
21
RewriteCond %{QUERY_STRING} ^[^=]*(?:[.&]|$)
22 22
	# . or & before any =
23
RewriteCond %{QUERY_STRING} ^(@?)(.*)$
23
RewriteCond %{QUERY_STRING} ^.*$
24 24
RewriteRule ^.*$ $0?%1.%2 [discardpath,noescape]
25 25
# otherwise, prepend & to force a query param
26
RewriteCond %{QUERY_STRING} ^(?!@?[.&]).+$
26
RewriteCond %{QUERY_STRING} ^(?![.&]).+$
27 27
	# [.&] not already prepended and non-empty
28
RewriteCond %{QUERY_STRING} ^(@?)(.*)$
29
RewriteRule ^.*$ $0?%1&%2 [discardpath,noescape]
28
RewriteCond %{QUERY_STRING} ^.*$
29
RewriteRule ^.*$ $0?&%0 [discardpath,noescape]
30 30

  
31 31
# handle username-based prefix subpaths of the form "__@host" or "__@host?query"
32 32
# *note*: paths and subdomains are *not* supported when using usernames

Also available in: Unified diff