views:

9

answers:

1

I have this in my .htaccess file:

# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>

# END WordPress

I want this rule to NOT run if the url has /Users or /Forums in the url.

How can I do this?

Update What about file extensions?

+1  A: 

Just add another condition that excludes such URL paths:

RewriteCond %{REQUEST_URI} !^/(Users|Forums)(/|$)
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
Gumbo
so I remove the 'rewritebase /' or keep that?
Blankman
what if I want it to ignore a specific file extension, like .cfm
Blankman
@Blankman: Just add another condition: `RewriteCond %{REQUEST_URI} !.*\.cfm$`
Gumbo