Using .htaccess to redirect your site to any specific url you want is just so easy. If you want to redirect your site to site URL that dont have wwww, like from http://www.myweb.com will be redirect to http://myweb.com. This method will help your site URL to be more minimize, clean and SEF url. So place the code inside your .htaccess file.
# put this .htaccess file to your site root directory #
Options +FollowSymLinks
# start the Rewrite Engine or Rewrite Mode #
RewriteEngine On
# check if url has www #
RewriteCond %{HTTP_HOST} ^www\.mysitename\.com$ [NC]
# redirect url to your url that dont have www #
RewriteRule ^(.*)$ http://mysitename.com/$1 [R=301,L]
Please feel free to make a comment and suggestion on this tutorial. Your comment and suggestion will help improve the tutorial for the benefit of you and others. Thank you...