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