301 resirect in .htaccess www to no www

Can you tell me the best way and where in the .htaccess file a 301 redirect for www to no www. should go?