HTTP 404 error
I've an APEX application which I want to be redirected to HOME page when a user enters erroneous URL. To fix this, I've put ErrorDocument 404 /f?p=SITE1:HOME in httpd.conf file and then re-started Apache.
Now I'm facing below 2 issues and with my limited knowledge on server configuration, I'm not able to resolve them. Can anyone please advice on it?
1. Now it is able to redirect some of the incorrect URLs to HOME page but for some incorrect URLs, it still returns HTTP 404 error.
2. Besides, I've 2 apex sites on the same APACHE with different alias' say http://mysite1.com and http://mysite2.com. And I want to fix HTTP 404 for only Mysite1 i.e. to fix it only when user enters incorrect URL on Mysite1 then he should be redirected to its home page.