This question may be asked many times but I couldn’t able to get a clear answer, so please forgive me.
I’ve an ASP.NET MVC blog running successfully, recently I came to know that google see both the requests http://www.myblog.com and http://myblog.com as different.
So I thought of doing some redirect from one to other but not sure from which one to other I’ve to do the redirect. Means, I want to do the 301 redirect from http://www to http:// or vice-versa.
Additionaly in the sitemap file I’ve specified the urls as http://www.* and in google web master tools the site is displayed as http://www.myblog.com.
Can someone please help me on this?
Rather than redirect content you can specify canonical references to instruct search engines which URL to index. Irrespective of which version of your URL google sees, it will see the content as the same and index your site under the
www.myblog.comdomain.For example: