Last post Jun 26, 2015 01:23 AM by anuj_koundal
Jun 24, 2015 05:14 AM|thirumalai_samy|LINK
I have launched a website developed in ASP.Net(2010)(.Net framework 4.0). This website is launched in cloud server(s). The website url is like
http://example.com. While searching with search engines, I am getting two urls like http://www.example.com and
http://example.com. In this scenario, I would like to ensure that only single url needs to be used for SEO purposes(like http://www.example.com)(redirection to the single url). I would like
to know the changes to be made with Web.config file to achieve this.
My advance wishes for all your help and replies!!!
Jun 25, 2015 05:00 AM|anuj_koundal|LINK
You can achieve it by making changes in Global.asax file. Here is the detailed article :
This article have description about how you can force users to www and non www urls.
Demo: Try this http://codingfusion.com you will automatically redirected to www version that is
Jun 26, 2015 01:13 AM|thirumalai_samy|LINK
Thank you very much for your reply. Your suggestions helped me in resolving this issue... We have fixed the issue using Global.asax changes.
Jun 26, 2015 01:23 AM|anuj_koundal|LINK
Glad to hear that you have solved your issue.