How do you redirect all the pages from your old domain to the homepage of your new domain?

0
0

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

  • You must to post comments
Showing 1 result
Your Answer
Post as a guest by filling out the fields below or if you already have an account.
Name*
E-mail*
Website