.htaccess question
Hi all,
Almost done with our new zencart
. 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:
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
Stuff: ZC v1.37 | Linux | mysql v 4.1x | php v 4.4x | phpmyadmin v 2.6x | Default Template
Mods: Login Box v 1.41