2

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.

4

1 回答 1

0

您应该像这样使用行开始和结束:

^/?Results.*
于 2013-10-04T15:27:09.610 回答