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):