Not sure how's this related to PHP, as an example. It's a basic fallback redirect when something doesn't exist to a default, which happens to be index.php but could easily be a static file as well.
A nicer example would be the way symfony framework rewrites the script path and passes it's parts as parameters to index.php (or any app entry point) to allow internal routing.
Katz currently works as the Chief Communications Officer at Macareux Digital, Inc. to spread the word of Concrete CMS, a free open source web publishing application.
Location
Iwakura, Aichi, Japan
Education
California State University, Long Beach
Work
Chief Communications Officer at Macareux Japan, Inc.
Not sure how's this related to PHP, as an example. It's a basic fallback redirect when something doesn't exist to a default, which happens to be index.php but could easily be a static file as well.
A nicer example would be the way symfony framework rewrites the script path and passes it's parts as parameters to index.php (or any app entry point) to allow internal routing.
Hi, sorry for the late reply.
Yeah I understand.
But I needed to make this really quick & it was 10 min to make anyway.
You're welcome to send me a PR with Symfony. :)