New Zenner
- Join Date:
- Mar 2007
- Posts:
- 57
- Plugin Contributions:
- 0
.htaccess question
Hi all,
Almost done with our new zencart :D. My last task is to add the recommended code from the Wiki and Tut's to the .htaccess.
Is it simply a matter of adding the code:
#.htaccess to prevent unauthorized directory browsing or access to .php files
IndexIgnore */*
<Files *.php>
Order Deny,Allow
Deny from all
</Files>
<Files *.txt>
Order Deny,Allow
Deny from all
</Files>
or does it need to be written diffrently?
I also read somewhere that .htaccess files protect all files and folders in that directory and all files and folders below it. The Wiki/Tuts recommend placing it in every folder that has an index.html file. Which is he correct method?
Thanks for any help on this and all of the previouse help,
Steve