Asp – Issue with http:// and http://www

asp.netdnsiisnet

I have an application which is hosted on a staging server. If I use my application by providing my credentials, I can open URL => http://mysite.com.

However, if I change the url to http://www.mysite.com, the site shows the login page again to request the credentials (which I have just provided).

Now on the staging server, if I type http://mysite.com in the address bar, I get sent to http://mysite.com. But when I type google.com into the address bar, I get taken to http://www.google.com. How is this happening?

My question is: when my application goes live and I type mysite.com, will the url get converted to http://www.mysite.com or do I need to do something to convert the url to one containing www?

Best Answer

You need to set up a forwarder to forward the www subdomain to the root domain.

Here's a few ways to do it: