user2794692
user2794692

Reputation: 391

Redirect 404 error automatically to home in symfony2

How can I redirect 404 errors using Symfony2 to another route, for example to my home.

I want if an user try to enter in /badspelling.php doesn't show 404 error page, instead of this I need to redirect to my /home.php

Is it possible?

Upvotes: 0

Views: 4656

Answers (1)

gp_sflover
gp_sflover

Reputation: 3500

I think your question is identical to this: Show a specific route instead of error page (404) (change only the page to which redirect)

Upvotes: 1

Related Questions