I have a bunch of RewriteRules in my .htaccess file and I wand to redirect to my custom 404 error page when no matching rules are found. I tried to:
ErrorDocument 404 /index.php/index/error/filenotfound
with no success :/
My custom error page URL is www.domain.com/index.php/index/error/filenotfound