What you want is the rule:
"^ test (/.*)?$"
Your action may remain unchanged.
With the rule above, you say: “If the first thing after the HTTP_HOST part of the URL (which includes the first slash, ie“ http://mywebsite.com/ ”) is equal to the test, then you create a capture group on to the rest of the URL (if there is one), rewrite the URL to have HTTP_HOST, add port 9090, and then add everything that was in the first capture group (for example, R: 1, regardless of what parens is in the regular expression )
Make sure you uncheck the “Add query string” box when you grab what you need as part of the regular expression and don’t need it.
Credit where it should, I struggled with the solution of this, too, and found what I need here:
http://forums.iis.net/t/1180781.aspx
source share