I've mapped 'example.com' and 'www.example.com' to the same IP address with my hosting service provider. But because my SSL certificate only works for 'www.example.com', so what I want is when the user visit 'exam开发者_如何学Gople.com', he will be redirected to 'www.example.com'.
I'm using ASP.Net MVC and IIS 7.
Thanks
I would say you should fix your canonicalization issue in the web.config file of your web application. Look here:
http://www.barrywise.com/2008/10/seo-canonical-urls-and-301-redirects-in-windows-iis-6-iis-7/
Let me know if it working.
This site has the details:
http://www.stepforth.com/resources/web-marketing-knowledgebase/non-www-redirect/
精彩评论