I have written a condition to auto add the path in the URL and it is working perfectly but now I want to add error pages but it is giving no response instead giving a 500 error. ErrorDocument with text is working fine but it is not adding file I have already checked all possible paths but still no response.
This is my code in .htaccess file.
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /crud/views/pages/$1 [L]
</IfModule>
ErrorDocument 500 /404.html
ErrorDocument 404 /404.html