Is is possible to create a PHP file in my site's root folder that catches all requests to URLs that don't match other files or subfolders?
I want to use this technique to implement MVC in my project. Instead of specifying which module and method to call in the query string, I want request to be sent to my catch-all file.
Example: If someone requested "http://www.exampledom/foo/bar" it would be handled by my PHP catch-all script that would split out the "foo" and "bar" and, from my code conventions and design, know what to do to respond.
Thanks for the help,
Stephen Martindale




Bookmarks