Results 1 to 2 of 2
  1. #1
    Join Date
    Mar 2007
    Posts
    58
    Plugin Contributions
    0

    Default .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

  2. #2
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default 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
    Zen-Venom Get Bitten

 

 

Similar Threads

  1. .htaccess install question
    By nadsab in forum General Questions
    Replies: 15
    Last Post: 7 Sep 2010, 05:37 PM
  2. htaccess question
    By BadDog1369 in forum Installing on a Linux/Unix Server
    Replies: 1
    Last Post: 7 Jun 2010, 12:28 PM
  3. htaccess rewrite question
    By jeking in forum General Questions
    Replies: 12
    Last Post: 6 Mar 2008, 05:38 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg