IIS 7 : Redirect domain.com to www.domain.com
IIS URL Rewrite extensions enables web administrator to enforce powerful rules to transform complex URLs into simple and consistent Web addresses. As well it also helps to produce user and search engine friendly URLs.
In this post, we will examine how we can use IIS URL Rewrite extensions to redirect domain.com to www.domain.com. For more information on how to connect to remote website through IIS read my previous post. As we all know that by default we can access website with or without WWW. For e.g. browsing nandipmakwana.com and www.nandipmakwana.com will open same website. This means there are two different web addresses are available for one website and hence website’s SEO ranking will be distributed between these two addresses. To overcome these SEO ranking distribution, we can force all web traffic to redirect either domain.com or www.domain.com. Google web masters tool also allow web master to set preferred domain for indexing website URLs.