Project

General

Profile

« Previous | Next » 

Revision 13677

bugfix: web/.htaccess: username-based prefix subpaths: REDIRECT_REQUEST_URI: also allow it to be unset, as it is when using usernames

View differences:

trunk/web/.htaccess
37 37
# must come before external redirects, because they lose the username
38 38
RewriteCond %{HTTP_HOST} ^[^.]+\.[^.]+$
39 39
	# doesn't have subdomain & host doesn't end in . (which disables usernames)
40
# doesn't have path (which disables usernames to avoid needing trailing . )
40 41
RewriteCond %{REQUEST_URI} =/
41
	# doesn't have path (which disables usernames to avoid needing trailing . )
42
## original URL (if specified) also doesn't have path
43
RewriteCond %{REDIRECT_REQUEST_URI} ="" [ornext]
42 44
RewriteCond %{REDIRECT_REQUEST_URI} =/
43
	# original URL also doesn't have path
44 45
RewriteRule ^.*$ username_prefix.php [discardpath,last,noescape,qsappend]
45 46

  
46 47
# remove www subdomain

Also available in: Unified diff