Project

General

Profile

« Previous | Next » 

Revision 13674

bugfix: web/.htaccess: username-based prefix subpaths: also need to check original URL (REDIRECT_REQUEST_URI), in addition to current URL (REQUEST_URI) to see if usernames should be disabled

View differences:

trunk/web/.htaccess
39 39
	# doesn't have subdomain & host doesn't end in . (which disables usernames)
40 40
RewriteCond %{REQUEST_URI} =/
41 41
	# doesn't have path (which disables usernames to avoid needing trailing . )
42
RewriteCond %{REDIRECT_REQUEST_URI} =/
43
	# original URL also doesn't have path
42 44
RewriteCond %{ENV:usernames_disabled} =""
43 45
	# not explicitly disabled by a RewriteRule
44 46
RewriteRule ^.*$ username_prefix.php [discardpath,last,noescape,qsappend]

Also available in: Unified diff