Redirect all pages from an old subdomain to the new one

place a new htaccess file in your old website directory with the following contents
RewriteEngine on
Redirect 301 / http://yournewwebsite.com/