windows - Exclude certain URL's from ISAPI Rewrite 3's URL Rewrite -


i'm building drupal cms website on iis 6 , using isapi rewrite 3 make url's more readable. problem have virtual directory located within drupal site points local directory outside of drupal website folder. not want isapi rewrite rewrite urls pertaining virtual folder. example:

www.domain.com - rewrite everything

www.domain.com/pdf/ - exclude url rewrites

is possible?

other info: drupal version 6.19 -- isapi rewrite 3 -- iis 6 -- windows server 2003 r2

edit #1: folder excluded contains pdf documents. when try open pdf via url (e.g. www.domain.com/pdf/thisdocument.pdf) gives me 404 page not found error - handled isapi rewrite.

i'm pretty sure can use rewritecond (http://www.helicontech.com/isapi_rewrite/doc/rewritecond.htm):

rewritecond %{request_filename} !(^/pdf/) rewriterule (your rule here) 

you can use

rewritecond %{request_filename} !-f rewritecond %{request_filename} !-d rewriterule (your rule here) 

to exclude existing files or directories rewriterule.


Comments

Popular posts from this blog

asp.net - repeatedly call AddImageUrl(url) to assemble pdf document -

java - Android recognize cell phone with keyboard or not? -

iphone - How would you achieve a LED Scrolling effect? -