I am trying to use mod_rewrite to be able to redirect my custom html error page when 404 is returned. Right now my HTTP server is working and my application server (Websphere) is working. When I remove the service on the application server, it returns a message as follows:
SRVE0255E: web group / virtual host to handle localhost: 80 is not defined.
I want to be able to redirect to my custom error message based on the response, rather than showing this error message. Trying to use the ErrorDocument directive in the httpd.conf file does not work, but I heard that it is possible to do this with mod_rewrite. I am not sure how to do this.
Albert
source
share