If you move your WordPress website from one domain to another (as we have recently done), and you have kept existing URLs etc (so, you have kept your old database across and made the necessary changes), this
.htaccess code will redirect all your old requests to the new website.
Redirect An Old WordPress Website To Your New Website
RewriteRule ^(.*)$ http://www.newdomain.com/$1 [R=301,L]
Add the code to your .htaccess file without white spaces. When altering the file, always back it up first.
Shortt URL for this post: http://shor.tt/2nTD