I have a page of 404.php and the intention is that using .htaccess will take you to that page in case of error 404, but it does not work.
This is the htacccess file:
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME}\.php -f
RewriteRule ^(.*)$ $1.php
ErrorDocument 404 /404.php
ErrorDocument 403 /404.php
This is the error that gives me:
Not Found
The requested URL /CBS/CBSLanguageAcademy/hi was not found on this server.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
I do not know why I get that error, I'm pretty bad with the .htaccess.
Does anyone have any ideas?