Possible Duplicate:
www.example.com vs example.com
I recently purchased a hosting plan from one of the service providers. They offered a free domain-name to me and I gladly purchased it.
Now I logged into their control panel and put all my files there and then my site became online and is working fine.
I observed yesterday that when I hit www.domain-name.com or domain-name.com, the site displays correctly. But I had thought that when I hit domain-name.com, it will get redirected to www.domain-name.com which is not happening. Also I read in internet wherein some people say the two are different.
I am really confused regarding this. Are www.domain-name.com and domain-name.com different? If yes, how do I set up a redirect such that all domain-name.com requests redirect to www.domain-name.com?
I also want to know where do I setup the redirection ??
i will break youand see if your website is still functioning. WARNING: don't do this on a live site, it is designed to kill the website. If your website breaks, then you're using apache, if it does not, well, you need to find out how your site is hosted. – gAMBOOKa May 23 '11 at 08:47www.whateverinto an alias forwhateverif you are the owner ofwhatever, but there is no such mapping in place unless someone put it there, and some sites prefer to have them separate for various reasons. – tripleee Jun 03 '21 at 08:56