wwfc_barmy_army Posted June 6, 2009 Share Posted June 6, 2009 Hello everyone. Basically I have this htaccess rule: RewriteEngine On RewriteRule ^([^/]+)?/?$ index.php?do=$1 [L,QSA] But when i go to any of the following it runs the rule -mydomain.com/adirectory -mydomain.com/adirectory/ But this loads like it should: -mydomain.com/adirectory/index.php Can i give exceptions to the rule for certain domains so for example -mydomain.com/adirectory goes to the subdirectory rather than following the htaccess rule? Thanks. Quote Link to comment https://forums.phpfreaks.com/topic/161195-mod-rewrite-except-certain-directories/ Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.