How to build a basic server side routing system in PHP.
John O. Paul
3968

The examples to test out in postman for /data etc brings back object not found, which I have now copied your code and tested again, but still get the same issue. I have updated my .htaccess file with the below:

<IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L]</IfModule>

any ideas?