Per your answer to my question in the comments:
Is this rule in the site root web.config or a subdirectory web.config?
@Kev in a subdirectory: "/partners"
From the docs:
Quote:
Note that the input URL string passed to a distributed rule is always relative to the location of the Web.config file where the rule is defined. For example, if a request is made for http://www.mysite.com/content/default.aspx?tabid=2&subtabid=3, and a rewrite rule is defined in the /content directory, then the rule gets this URL string default.aspx as an input.
Based on this you need to change your url match to:
^(var|distributors|msp|techpartners)/(na|emea|apac)(|/)(.*)
Assuming your re-write rule exists in:
http://example.com/partners/web.config
There is just one other thing which is what appears to be an extraneous $
character in your redirect/rewrite url in front of back reference {R:1}
, I'm not sure if you intended that to be there or not.