I use windows 2008 server with IIS7 and have created the following URL rewrite rule:
<rule name="Rewrite english to /index.asp">
<match url="english" />
<action type="Rewrite" url="index.asp" />
What this does is when the URL is written as:
It would redirect to:
The only problem is that if there are any files on the website which start with the text "english" then the rule would apply to that filename. I have an image called english-rose.jpg which would not display when this rule was in place. As soon as I removed the rule it was fine.
So what I want is to change the rule so it only matches on /english and no other variation.