So I have a php file called lets say "foo.php". I want foo.php to act as a controller (like in a MVC Framework except I am using regular PHP). So lets say when a user goes to url.com/foo.php/1, I want it to do the same thing as foo.php?id=1
Would I handle something like this in the .htaccess or is it possible to do it just via the foo.php file?