After making this .htaccess file
ErrorDocument 404 localhost/website/error404.html 
RewriteEngine On
RewriteRule ^([0-9A-Za-z-]+)/?$ users.php?name=$1 [NC,L] 
If I open a folder inside a website like: localhost/website/user 
Then it redirects me to error404 page. I need to type localhost/website/user/index.php in order to open it. How to fix it guys?
