2
votes

I am trying to figure out how to write a regex for an IIS rewrite rule that matches a url.

The URL I am trying to match is: http://www.example.com/Results/

the problem is that it is matching all URLS that come in that contain the string Results in it. I am using (Results.+) since I need it to keep the rewrite for the items coming after the slash. How can I get it to match just Results for me.

1

1 Answers

0
votes

You should use line start and end like this:

^/?Results.*