Make sure the requested path is not a file or directory; redirect all such paths to index.php