Disable mod_rewrite in folder

I have some mod_rewrite in a htaccess file to make pretty urls, but I would like to disable the function for a subfolder - how can I do that?

I have tried the following, but it doesn't change anything :(
# Exclude mod_rewrite for WP
RewriteCond %{REQUEST_URI} !^/wordpress

# Rewrite for pretty url
RewriteRule ^([a-zA-Z0-9\-_/]+)$ /index.php?url=$1 [QSA]

Open in new window

ThingmandAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

NeoAshuraCommented:
The most foolproof way to do it would be to bypass the drupal mod_rewrite directives for those directories. For example to bypass the rules for the subdirectory "/no_rewrite/mystuff/dir1/" you would add the code:

RewriteRule ^no_rewrite/mystuff/dir1 - [L]
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
NeoAshuraCommented:
these needs to go  ahead of the RewriteRules for drupal.
0
ThingmandAuthor Commented:
Drupal? Why are you talking about Drupal?
0
ThingmandAuthor Commented:
Well, it works :)

RewriteRule ^wordpress - [L]
0
NeoAshuraCommented:
no problem glad i could help. thanks
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Apache Web Server

From novice to tech pro — start learning today.