From 2f353e89409420b875afefd7b412c17996c32045 Mon Sep 17 00:00:00 2001 From: M Date: Sat, 21 Nov 2015 16:33:28 -0500 Subject: * Changing the mechanism by which the requested path is passed to the app ! It has been observed that on server nginx, some of the assumptions from doing similar work on apache have broken down and a more general mechanism must be used to handle paths in the clean-url app. ! New scheme is this: app is invoked with `index.php?path=` The app will be configured with its own root location on the virt. server and use logic to dedue the relative path requested from that. Also app will use the configured path to predend to urls linked/directed to during use of the app --- app/index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/index.php') diff --git a/app/index.php b/app/index.php index ca2ce45..5f2d9f4 100644 --- a/app/index.php +++ b/app/index.php @@ -11,6 +11,6 @@ function main($argv) echo "Scrott!
"; } -main(explode("/", $_SERVER['PATH_INFO'])); // Start rendering web page for the requested path. +main(explode("/", $_REQUEST['path'])); // Start rendering web page for the requested path. ?> -- cgit v1.2.3