What I have in each directory.
<Files *>
Deny From All
</Files>
I would like to put an htaccess file in my root main directory that does this:
1- prevents root access to any folder.
2- Redirects the user to one url should he try to access any root.
3- Still allow scripts to run and write in those directories publicly.
I also want to make sure that if an index,htm(l)/ or ,php file exists, that is loaded normally.
I seem to be struggling in figuring this out.
Thanks in advance for rewriting this beginner in the right direction.