// note: %% isn't legal in a well-formed URL, so it's not a bad variable-delimiter
foreach ($requestPath as $pathPos => $pathPart) {
$vars["%%{$pathPos}%%"] = urlencode($pathPart);
// note: %% isn't legal in a well-formed URL, so it's not a bad variable-delimiter
foreach ($requestPath as $pathPos => $pathPart) {
$vars["%%{$pathPos}%%"] = urlencode($pathPart);