Friday, March 1, 2024

WordPress Reference
< All Topics

How to redirect all the pages from an old domain to the homepage of a new domain

Inserting the following line in the old domain’s .htaccess worked for me:

RewriteRule ^(.*)$ https://newdomain/ [R=301,QSD,L]

I obtained this solution from the url below:

Table of Contents