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

Dispatcher EventsManager don't redirect urls address with spaces and path to files which not existing

Hi all, i'm use dispatcher events manager for redirecting to 404 page and it's works fine for 'HANDLER_NOT_FOUND' and 'ACTION_NOT_FOUND' exeptions.

But when enter url string like:

  • {domain}/contol ler or {domain}/contoller/acti on (words with spaces)
  • path to not existing file

allways redirect to index page.

maybe someone encountered this problem and knows the solution.