I do not ahve developing knowledge, can anyone tell me how is site redireceted to www. to without www. or vice versa and also if opened normally i.e .com/ --it opened with .com/defalt.aspx? Can anyone tell me the logic of all these redirections and why developer create these pages instead of one. OR they are automatically redirected........ Help me regarding this URL concept in detail?
The Domain Name server has an entry for the IP address of the domain name. It might have two entries - one for site.com and one for www.site.com. When you think you're going to mysite.com, you're really going to 1.2.3.4 (or whatever the IP address is). If www.mysite.com is listed at that same address, you go to the same site. (It's like letters to you, your wife and just your family name, at your address, all go to the same place.) The web server is set to deliver a page if none is specified. That can be default.asp, default.aspx, index.asp, etc.