How to redirect your website url on www using .htaccess file

How to redirect your website url on www using .htaccess file

RewriteEngine on RewriteCond %{HTTP_HOST} ^ websitename.com $ RewriteRule ^(.*)$ "http\:\/\/www\. websitenam…