Redirect invalid url to specific error-page

Hi, all

is there a way redirect invalid url request to error-page

ex) [URL]http://localhost:5555/a[/URL] → it shows object not found
==> I want to redirect it to custom error.html

I tried, changing IS_HOME/web/conf/web.xml and place error.html in Default, WmRoot, WmTomcat package’s pub dir

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

but it doesn’t work

if you have any experience about it, please let me know.

Regards
namhoon.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.