[kwlug-disc] htaccess

john at netdirect.ca john at netdirect.ca
Mon Jan 4 15:55:59 EST 2010

You might also look into <Directory> statements in httpd.conf or conf.d files. For sensitive data it makes sense to double up the security. 

John Van Ostrand , CTO, co-CEO
Net Direct Inc.
564 Weber St. N. Unit 12
Waterloo, ON N2L 5C6
Ph: 519-883-1172
Fx: 519-883-8533

----- Original Message -----
From: Chris Irwin [chris at chrisirwin.ca]
Sent: 01/04/2010 02:15 PM EST
To: KWLUG discussion <kwlug-disc at kwlug.org>
Subject: Re: [kwlug-disc] htaccess

On Mon, Jan 4, 2010 at 13:58, Insurance Squared Inc. <
gcooke at insurancesquared.com> wrote:

> Is there a way to have some htaccess directives only apply to a main
> folder, but not subfolders?  or even better, to have it apply to all except
> 'some' subfolders?
> I'm using a wordpress install that uses htaccess to redirect pages, but
> it's affecting some subfolders and causing other stuff to not work.

There are two examples on Stack Overflow. The first is using a redirect for
.html files in the top-level only, and another matches a list of applicable


Depending on your rules, you may be able to simply rewrite them to be more
precise (for example: Redirects for an old site, etc).

Chris Irwin
<chris at chrisirwin.ca>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://kwlug.org/pipermail/kwlug-disc_kwlug.org/attachments/20100104/92cc1349/attachment-0001.html>
-------------- next part --------------
kwlug-disc_kwlug.org mailing list
kwlug-disc_kwlug.org at kwlug.org

More information about the kwlug-disc mailing list