Redirecting Backlinks From an Entire Domain

If you want to redirect the backlinks from an entire domain to a new domain, then you have several options to choose between depending on where you want the PageRank to flow. Just choose the redirection type you need below and paste the appropriate 301 redirect code in the .htaccess file or use the recommended instructions for the WordPress redirection plugin. Redirect an Entire Domain On a URL-By-URL Basis This method redirects every page on an old domain to a new domain with the same URL paths. If the page URL doesn’t exist on the new website, then you’ll get a 404 error. So make sure the new URLs are set up on the new domain before you put this 301 redirect into place.

If you’re editing the .htaccess file on an Apache server, then add this line of code:

Redirect 301 / http://example.com/
If you’re using the WordPress redirection plugin mentioned earlier in this guide, then use this setup in the image below while also making sure to turn on the “Regex” function (highlighted in yellow):

Redirect an Entire Domain to a Single URL

This method allows you to redirect every URL on the old domain to a single URL on the new domain. This condenses all of the SEO value from every backlink pointing to the old domain to a single web page on the new domain to increase its PageRank.

If you’re editing the .htaccess file on an Apache server, then add this line of code:

RewriteEngine on
RewriteRule ^.*$ www.example.com/newpage.html L,R=301
If you’re using the WordPress redirection plugin, then use this setup in the image below while making sure to turn on the “Regex” function (highlighted in yellow):