Automatic redirect error 403 etc...

how can i redirect any virtual server to base url, if some server error happens, for example 403 or other?
i could do hta uplaoding a .htaccess file in any virtual host, but there is some general configuration in virtualmin to do that?



If you go into Services -> Configure Website -> Error Handling, you can set a URL to load upon receiving an error.


Im trying to do the same thing at the moment:

I found error handling section in virtualmin.

I did manage to get custom message working, but it didn’t go so well with a custom html.

address I used: