I have heard that if you have two URL's for your site i.e. http://yoursite.com
and http://www.yoursite.co
m, it affects your SEO and page rank. Instead, one should do a permanent redirect from http://
to http://www
. Is this correct?
Now I have seen all articles showing how to do it in IIS. However I have no access to IIS.
Can anyone tell me how it is done in code behind or any other method and what's the right way to do it?