I am trying to figure out the best URL rewrite rule to accomplish the following.
http://intranet/sites/default.aspx rewrite to http://intranet.domain.com/sit
This is the rule I would use:
It will match any requested path (url="(.*)") on the host exactly named http://intranet (pattern="^intranet$" and with https been turned off) and redirect it to http://intranet.domain.com/{R:0} (where {R:0} is a back reference containing whatever path was requested).