Project

General

Profile

« Previous | Next » 

Revision 13673

web/.htaccess: username-based prefix subpaths: allow explicitly disabling in a RewriteRule to handle special cases

View differences:

.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 %{ENV:usernames_disabled} =""
43
	# not explicitly disabled by a RewriteRule
42 44
RewriteRule ^.*$ username_prefix.php [discardpath,last,noescape,qsappend]
43 45

  
44 46
# remove www subdomain

Also available in: Unified diff