Forum Moderators: phranque

Message Too Old, No Replies

Ignoring rewriteRules of a subdirectory

Is there a way to ignore rewriteRules of a subdirectory?

         

asantos

11:42 pm on Mar 15, 2006 (gmt 0)

10+ Year Member



Hi. Is there a way to ignore rewriteRules of a subdirectory? For example i have:

/.
/..
/.htaccess
/index.php
/admin/

How can i apply the htacess to the 'root' directory only? i don't want the 'admin' directory to run under the /.htaccess rules.

Andres

jdMorgan

1:37 am on Mar 16, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



 RewriteOptions none

might work (not sure).

Otherwise, simply write add a rule at the beginning of your .htaccess file to immediately exit if the /admin folder is requested:


RewriteRule ^admin/ - [L]

Jim