non www url redirect to www url on IIS
Usually when you visit to some website, you may write only the url without www. But once you hit the Enter, you may noticed that that url changed to www format. This can be achieved by adding the rules to URL Rewrite module to IIS.
Download the modue from here and install on IIS. Now you can see the installed URL Rewrite module.
Time to write the url rewrite… The url redirect rules can be added via IIS or web.config file which is located on IIS.
Option 1: add the rules via UI
Opetion 2: add the rules via web.config, inside the rules tag
<add name="301ReDirect_For_WWW_Domain" redirect="Domain" ignoreCase="true" rewriteUrlParameter="IncludeQueryStringForRewrite" virtualUrl="http://sriajith.info/(.*)" destinationUrl="http://www.sriajith.info/$1" />
that’s all need to run, now you can enjoys the www url with your site 🙂