Currently both http://example.com
and http://www.example.com
works fine. However we need to make all http://example.com
urls to be redirected to http://www.example.com
.
The site is an ASP.net MVC4 website. To get it done I have added the following web.config entry under System.webserver.
<httpRedirect enabled="true" destination="http://www.example.com" />
However it is resulted in a redirect loop. Can you please help me get this done.