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} ^old-domain.info [NC,OR]
RewriteCond %{HTTP_HOST} ^www.old-domain.info[NC]
RewriteRule ^(.*)$ http://www.new-domain.com/$1 [L,R=301,NC]

 

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

Pin It on Pinterest

Share This