Currently I let a single PHP script handle all incoming URLs. This PHP script then parses the URL and loads the specific handler for that URL. Like this:
if(URI
The PHP approach is correct but it could use a bit of improvement.
$file = $uri.".php"; if (!is_file($file)) { header("Status: 404 Not Found"); require_once(404.php); die(); } require_once($uri.".php");