Hi I just want to know if there is a .htaccess alternate, instead of placing a blank index.php file in every directory so the contents are not shown.
- possibly to hide the contents of the directory or just a redirect to a page not found global page. I know that's what you do for non existing directories using:
But like I said, I want to make it so that it will redirect even if there is a directory, as long as there is not index file to display to the visitor.
ErrorDocument 400 /error/400.htm
ErrorDocument 401 /error/401.htm
ErrorDocument 403 /error/403.htm
ErrorDocument 404 /error/404.htm
ErrorDocument 500 /error/500.htm
I am new to using .htaccess, so any help is greatly appreciated.