Zen Cart Logo
Forums / General Questions / .htaccess question

.htaccess question

Locked

Views: 1,462

Results 1 to 2 of 2
This thread is locked. New replies are disabled.
24 Jun 2007, 5:33 PM
#1
stevenb avatar

stevenb

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

24 Jun 2007, 9:01 PM
#2
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: .htaccess question

add the statements as they are...

If your shop is at the root you only need one htaccess at the root as this is the only index page for your site unless you also have other apps loaded in other folders