If this is your first visit, check our documentation. To post, register or login.
Forums / General Questions / General Questions / htacess advice "please"

htacess advice "please"

Locked

Started by pasb on 12 Jul 2009, 11:43 AM · Views: 761

Results 1 to 4 of 4
This thread is locked. New replies are disabled.
12 Jul 2009, 11:43 AM
#1
pasb avatar

pasb

New Zenner

Join Date:
Mar 2009
Location:
Essex (UK)
Posts:
71
Plugin Contributions:
0

Post #1 by pasb

Hello,

  1. I have a sql folder, that I am thinking I need to protect with htacess, will this effect any functionality with the database etc?:huh:

  2. For all main folders that have an htacess file in them, does this fully protect every subfolder and file within the main folder?

  3. As there are subfolders that have htacess files in them also, is this ok, or do these conflict and stop working correctly, or is it that they have one in so they work independantly and will not conflict?

thanks
Paul

12 Jul 2009, 2:30 PM
#2
rodg avatar

rodg

Deceased

Join Date:
Jan 2007
Location:
Australia
Posts:
6,263
Plugin Contributions:
4

Post #2 by rodg

pasb:

Hello,

  1. I have a sql folder, that I am thinking I need to protect with htacess, will this effect any functionality with the database etc?:huh:

What does this 'sql folder' hold? Database files? SQL script files?
Do they really need to be located in a Web accessible folder?

Anyway, to answer your main question, no, a htaccess file will not affect the functionality of your database.

pasb:

  1. For all main folders that have an htacess file in them, does this fully protect every subfolder and file within the main folder?

Yes.

pasb:

  1. As there are subfolders that have htacess files in them also, is this ok, or do these conflict and stop working correctly, or is it that they have one in so they work independantly and will not conflict?

thanks
Paul

It is ok to have htaccess files in the subfolders, and they are read independently. However, be aware of the rules of precedence. Depending on the contents of your htaccess files sometime the parent htaccess file will have precedence, and othertime it will be the child htaccess that takes precedence, at least if you are using Apache.

See http://httpd.apache.org/docs/1.3/sections.html for a little more info.

Cheers
Rod

NOTE: We are sorry that Rod is no longer with us.
We are grateful for all his contributions to the Zen Cart community.

Ozpost - The Ultimate Shipping module for Australian Merchants. Click these links for its Homepage, or Download from Zen-Cart.com.

12 Jul 2009, 3:13 PM
#3
mprough avatar

mprough

Totally Zenned

Join Date:
Nov 2007
Location:
Woodbine, Georgia, United States
Posts:
4,337
Plugin Contributions:
41

Post #3 by mprough

This in your subfolder will prevent all script execution and browsing... But you should also place a blank index.html as well.

 OPTIONS -Indexes -ExecCGI

~Melanie

15 Jul 2009, 7:24 PM
#4
pasb avatar

pasb

New Zenner

Join Date:
Mar 2009
Location:
Essex (UK)
Posts:
71
Plugin Contributions:
0

Post #4 by pasb

Hi,

Thanks for both of your help, the sql folder was a oooops:dontgetit, it should not have been there!

the rest I will look into and make sure I follow the guide lines correctly,

thanks again

Paul