Project

General

Profile

« Previous | Next » 

Revision 13683

web/.htaccess: auto-detect dotpath: need to explicitly set usernames_disabled=1, because for some reason the `%{QUERY_STRING} =""` check doesn't detect a query string

View differences:

trunk/web/.htaccess
21 21
RewriteCond %{QUERY_STRING} ^[^=]*(?:[.&]|$)
22 22
	# . or & before any =
23 23
RewriteCond %{QUERY_STRING} ^.*$
24
RewriteRule ^.*$ $0?.%0 [discardpath,noescape]
24
RewriteRule ^.*$ $0?.%0 [discardpath,noescape,env=usernames_disabled:1]
25 25
# otherwise, prepend & to force a query param
26 26
RewriteCond %{QUERY_STRING} ^(?![.&]).+$
27 27
	# [.&] not already prepended and non-empty
28 28
RewriteCond %{QUERY_STRING} ^.*$
29
RewriteRule ^.*$ $0?&%0 [discardpath,noescape]
29
RewriteRule ^.*$ $0?&%0 [discardpath,noescape,env=usernames_disabled:1]
30 30

  
31 31
# handle username-based prefix subpaths of the form "__@host"
32 32
# *note*: subdomains/paths/query strings are *not* supported with usernames

Also available in: Unified diff