I have this code in my HTACCESS
ErrorDocument 404 /errors-404.html
ErrorDocument 403 /errors-404.html
RewriteEngine On
RewriteBase /admin/
DirectoryIndex /auth/login.php
RewriteCond %{ENV:REDIRECT_STATUS} ^$
RewriteRule ^(.+)\.php - [F,L]
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME}.php -f
RewriteRule ^([a-zA-Z0-9]+)(/)?$ $1.php
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^([^\.]+)$ $1.html [NC,L]
I want visitor to redirect to my custom 404 page when they visit www.site.com/login.php it must be www.site.com/login to get to login page but the problem in my HTACCESS is my DirectoryIndex when they open my site they redirect to my 404 page