DEV Community

Discussion on: Very Simple PHP Redirect

Collapse
 
andreidascalu profile image
Andrei Dascalu

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.

Collapse
 
katzueno profile image
Katz Ueno

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. :)