Re: what ever user type in URL redirect to main page

Splash Forums PrettyFaces Users what ever user type in URL redirect to main page Re: what ever user type in URL redirect to main page

#23393

Just use the <error-page> element in your web.xml:

<error-page>
<error-code>404</error-code>
<location>/my-error-page.html</location>
</error-page>

You don’t even need Rewrite/PrettyFaces for this to work. :)