Project

General

Profile

« Previous | Next » 

Revision 7947

web/vegpath/index.php: Use $PATH_INFO (i.e. index.php/$PATH_INFO) instead of the query string to pass the path to index.php, so that the query string can be used for other things

View differences:

web/vegpath/.htaccess
13 13
RewriteCond %{REQUEST_FILENAME} !-f
14 14
RewriteCond %{REQUEST_FILENAME} !-l
15 15
RewriteCond $0 !^index.php
16
RewriteRule ^.*$ index.php?$0
16
RewriteRule ^.*$ index.php/$0
web/vegpath/index.php
15 15
}
16 16

  
17 17
$h_level = 5;
18
$path = parse_dot_path($_SERVER["QUERY_STRING"]);
18
$path = parse_dot_path(rm_prefix("/", $_SERVER["PATH_INFO"]));
19 19
$ns = strtolower($path->head);
20 20

  
21 21
function add_ns($name, $path_pat, $url_func)

Also available in: Unified diff