.htaccess moving from Subdomain to Domain

I am requiring a little bit of help if that's okay! I have just moved the site from sub.domain.net to www.domain.net and would like to 301 redirect the old url's for search engines to the new URL if possible. at the moment I am using

Options +FollowSymLinks
RewriteEngine on
RewriteCond %{HTTP_HOST} ^domain.net [NC]
RewriteRule ^(.*)$ http://www.domain.net/$1 [L,R=301]

Thank you.