Revision 13622
Added by Aaron Marcuse-Kubitza over 10 years ago
username_prefix.php | ||
---|---|---|
12 | 12 |
header("Location: ".($_SERVER["PHP_AUTH_USER"] !== "" |
13 | 13 |
? ($_SERVER["QUERY_STRING"] !== "" |
14 | 14 |
? /*prepend to query string*/$_SERVER["SCRIPT_URL"] |
15 |
."?.".$subpath."&".rtrim($_SERVER["QUERY_STRING"], "&")
|
|
15 |
."?.".$subpath.ltrim($_SERVER["QUERY_STRING"], "@")
|
|
16 | 16 |
: $_SERVER["REQUEST_URI"]/*ends in ? */.$subpath |
17 | 17 |
) |
18 | 18 |
: rtrim($_SERVER["REQUEST_URI"], "?") #user empty->just display page |
Also available in: Unified diff
web/.htaccess, username_prefix.php: username-based prefix subpaths: support dotpath in query string (which will be appended verbatim to the prefix). use "__?@__" instead of "__?__&" to signal username-based prefix, so that the query string does not end in a dangling & .