Project

General

Profile

« Previous | Next » 

Revision 13666

web/.htaccess: username-based prefix subpaths: updated documentation to use leading // instead of trailing ? or ?@

View differences:

.htaccess
29 29
RewriteRule ^.*$ $0?%1&%2 [discardpath,noescape]
30 30

  
31 31
# handle username-based prefix subpaths of the form "subpath@host//path"
32
# supports multiple @ , nested . , & query str: a@b.c@url?@d&q -> url?b.c.a.d&q
33
# ( @ is effectively a placeholder for the decoded username prefix)
32
# supports multiple @ , nested . , & query str: a@b.c@url//?d&q -> url?b.c.a.d&q
34 33
# better than subpath.host because case is preserved and special chars allowed
35
# must require trailing ? , to avoid needing login to view the page itself
34
# must require leading // , to avoid needing login to view the page itself
36 35
# must come before external redirects, because they lose the username
37 36
RewriteCond %{THE_REQUEST} "\S+ //"
38 37
RewriteRule ^ username_prefix.php [discardpath,last,noescape,qsappend]

Also available in: Unified diff