<font size="2"><p>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. <br>John Van Ostrand , CTO, co-CEO<br>Net Direct Inc.<br>564 Weber St. N. Unit 12<br>Waterloo, ON N2L 5C6<br>Ph: 519-883-1172<br>Fx: 519-883-8533<br>http://www.netdirect.ca<br></p></font><hr><font size="2"><p><b>  From: </b>Chris Irwin [chris@chrisirwin.ca]<br><b>  Sent: </b>01/04/2010 02:15 PM EST<br><b>  To: </b>KWLUG discussion <kwlug-disc@kwlug.org><br><b>  Subject: </b>Re: [kwlug-disc] htaccess<br></p></font><br>
<div class="gmail_quote">On Mon, Jan 4, 2010 at 13:58, Insurance Squared Inc. <span dir="ltr"><<a href="mailto:gcooke@insurancesquared.com">gcooke@insurancesquared.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
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? <br>
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. <br></blockquote><div><br><br>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 directories.<br>
<br><a href="http://stackoverflow.com/questions/1805289/htaccess-rewriterule-parent-folder-only">http://stackoverflow.com/questions/1805289/htaccess-rewriterule-parent-folder-only</a><br><br>Depending on your rules, you may be able to simply rewrite them to be more precise (for example: Redirects for an old site, etc).<br>
<br></div></div>-- <br>Chris Irwin<br><<a href="mailto:chris@chrisirwin.ca">chris@chrisirwin.ca</a>><br>