Any one have any idea why does my domain works if I type mydomain.com to address bar but doesn't work if I type www.mydomain.com?
I am using amazon's EC2 service.
Any one have any idea why does my domain works if I type mydomain.com to address bar but doesn't work if I type www.mydomain.com?
I am using amazon's EC2 service.
If you are using Route 53 of AWS; we can create an alias and configure so that non-www is redirected to www. The record-set you need to create on Route 53 is suppose example.com [ blank in the first text box]. Type as A. Alias as Yes. Alias Target as www.example.com. Routing Policy as Simple.
If you are not using Route 53; you can use .htaccess file; or creating a filter in your web.xml to achieve same re-direction.