I am routing all the http requests to a website to the index.php file and then handling it from there in MVC fashion. But, if the request is made
/apiroute, then another file Api.php should handle it. How do I make that happen?
^ this is what I tried, but it just gave me a 500 error
Also, any insight into best practice concerning this is appreciated. I'm trying to write a PHP MVC framework, so I'd also like to know if this is the right way to go about with routing