If both Drupal (with clean urls) and Redmine on same server need this mod_rewrite type in .htaccess in /var/www directory:
RewriteCond %{REQUEST_URI} !redmine
OR COPIED TEXT
I have a site with this existing rule:
RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]
so that it captures all URLs and translates them to this query.
How can I precede this with something that will make an exception for URLs of the form
http://www.example.com/services/{anything}
e.g. any URL that refers to something in a /services
 directory?
ANSWER:
Try:
RewriteCond %{REQUEST_URI} !/services
If you are putting this into .htaccess, you might need:
RewriteCond %{REQUEST_URI} !services
or
RewriteCond %{REQUEST_URI} !services/
|
|
Quite possibly it is. Try it with and without a ^ and see which works best. Also see the full docs onhttpd.apache.org/docs/2.0/mod/mod_rewrite.html which is for apache 2.0 and probably hasn't changed recently.â Michael Graff Dec 1 '09 at 2:33 |