Link to home
Start Free TrialLog in
Avatar of Thingmand
Thingmand

asked on

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

ASKER CERTIFIED SOLUTION
Avatar of NeoAshura
NeoAshura
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
these needs to go  ahead of the RewriteRules for drupal.
Avatar of Thingmand
Thingmand

ASKER

Drupal? Why are you talking about Drupal?
Well, it works :)

RewriteRule ^wordpress - [L]
no problem glad i could help. thanks