One of the good rules of SEO is to keep domain name of website the same. This rule include prefix www. To implement this rule we can use simple rule for URL Rewriter:
<rewrite> <rules> <rule name="Redirect to kitsula.com without www." stopProcessing="true"> <match url=".*" /> <conditions> <add input="{HTTP_HOST}" pattern="^www.kitsula.com$" /> </conditions> <action type="Redirect" url="http://kitsula.com/{R:0}" redirectType="Permanent" /> </rule> </rules> </rewrite>
Or opposite, redirect to URL with www:
<rewrite> <rules> <rule name="Redirect to www.kitsula.com" stopProcessing="true"> <match url=".*" /> <conditions> <add input="{HTTP_HOST}" pattern="^kitsula.com$" /> </conditions> <action type="Redirect" url="http://www.kitsula.com/{R:0}" redirectType="Permanent" /> </rule> </rules> </rewrite>