We have moved our forum to GitHub Discussions. For questions about Phalcon v3/v4/v5 you can visit here and for Phalcon v6 here.

Redirect when url is not found

How to make page redirect automaticly, when url is not found ? because when url is not found/match, you will see some error.



58.4k

Hey man

You can use event in Phalcon to do that, take an example at https://github.com/phanbook/phanbook/blob/master/core/modules/backend/Module.php#L44