WordPress Reference
< All Topics
Print

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:

https://webmasters.stackexchange.com/questions/115617/how-to-redirect-all-pages-of-site-a-including-those-with-query-strings-to-home

latest Articles

Table of Contents