How do I exclude a directory from a url rewrite rule?

Hi,

I am using Url rewriting on my coldfusion application using the attached web.config file and it all works great but I now need to exclude a directory of /backoffice and all sub directories so when I navigate to this part of the site the url rewrite just ignores it and it works as normal.

I have researched on Google but am completetly stumped!!

url to ignore would be http://mydomain/backoffice anything other would redirect to index.cfm as per the rules.
web.config
LmillardAsked:
Who is Participating?
 
David Johnson, CD, MVPOwnerCommented:
Try thisweb.config.txt
0
 
LmillardAuthor Commented:
Sorry for the delay in response, I have amended the file but this still redirects to index.cfm when I go to /backoffice.

Do I need to restart IIS everytime I make and amendment to the .config file?
0
 
David Johnson, CD, MVPOwnerCommented:
maybe not iis in full but that particular site yes.
0
 
LmillardAuthor Commented:
Hi,

Tried this and it still catches it and redirects to index.cfm

Cheers
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.