Best wordpress security & maintenance

To be able to redirect all links from the old domain to new one you need to edit .htaccess file on the old domain like this:


RewriteEngine on
RewriteCond %{HTTP_HOST} ^ [NC,OR]
RewriteCond %{HTTP_HOST} ^[NC]
RewriteRule ^(.*)$\ [L,R=301,NC]


Of course  you need to change to the yours old domain name and with yours new domain name.