I have been struggling to get Umbraco (7.1.4) to prefix URLs without www with www. I can't quite grasp the syntax of UrlRewriting.Net.
My current solution is:
<add name="forcewww http"
virtualUrl="http\://(?!www\.)"
redirectMode="Permanent"
destinationUrl="http://www."
ignoreCase="true"
redirect="Domain" />
But I would like it not to trigger for URLs for the Umbraco backend (containing /umbraco).
Something like (\/umbraco|\/data|\/install|\/usercontrols|\/umbraco_client))
.
The solution should be valid for multiple domains/tlds.
Your help is much appreciated!