I think that both the question and the answer here shouldn't be very complicated.

I have installed and configured the FOSUserBundle to use in a project with Symfony2.

What I need to know is where I tell the Security which page it has to redirect the user when they try to access to a forbidden url.

By default it is /login. But I'd like to change it to a more general /main.

Thanks in advance