How do I create an UrlRewriter.net redirect rule to redirect non-www pages to www?
I have found htaccess and ISAPI examples, but cannot find the proper regex rule for UrlRewriter. For example, this doesn't work:
<redirect url="http://example.com(.+)" to="http://www.example.com$1" />
If you are not currently using a rewrite module and this is all new then I would recommend using the IIS rewrite module version2
With this you can create new rules based on templates and Canonical rules are there to select so you don't need to write your own :)