Hi,
We want to redirect all 404 Page not found & File Not Found error page to custom Error page which is located under /sites/en_US/
So, written the Rules like below but it didnt work.
Redirect 404 /sites/en_US/404
ErrorDocument 404 /sites/en_US/404
If use like below then all pages taking to custom Error page. Kindly please help me to resolve this issue.
Redirect 404 /
ErrorDocument 404 "<h1>Custom 404 Page</h1>"
<VirtualHost *:80>
ServerName cmspliv1.com
ErrorLog logs/live/http_error.log
RewriteLog logs/live/http_rewrite.log
CustomLog "|/opt/apps/apache/bin/rotatelogs -f /opt/apps/apache/logs/live/http_access.log.%Y.%m.%d 86400 +60" imi
Redirect 404 /sites/en_US/404
ErrorDocument 404 /sites/en_US/404
RewriteEngine on
#RedirectMatch 404 /sites/en_US/404
JkMount /* prod_live_svr
JkOptions +ForwardURICompatUnparsed
</VirtualHost>