my site is hosted on a dedicated server. if you go to my site http:// sitename.com .. it works properly but if put www. in front nothing comes up, but without www. it works fine.
The problem is you’re missing an A record in the DNS for the www. Add an a record with www pointing to your IP, that should take care of it. Also remember to make sure your host headers are set correctly.