Can you 301 redirect 2 domains to a third domain ?

Scorpion2

Junior Member
Joined
Dec 22, 2014
Messages
116
Reaction score
66
I have two small sites that get about 10k unique visitors per month mainly through search engines (google) and i was hoping to redirect them to my new mega lifestyle site that i am working on.

I wanted to copy the content and point each page/post to the new domain page/post but i would like to do this and keep my search engine ranking and traffic.

So for example i want to be able to point

www.domain1.com/blue-widgets to www.domain3.com/awesome-blue-widgets
www.domain2.com/red-widgets to wwww.domain3.com/awesome-red-widgets

what code i should use in .htaccess to ensure that all the link juice from both sites pass to the new site? I would like to have one line of code for each page/post that i 301 redirect.
 
Last edited:
Yeah. Make sure to add all 3 to google search console and identify them as yours. redirect them 301 and then do "address change" on the google panel, then it'll look legit.
 
Yeah. Make sure to add all 3 to google search console and identify them as yours. redirect them 301 and then do "address change" on the google panel, then it'll look legit.

Can you tell me what the .htaccess code should look like?

I never did it where i had to have a line for each post/page that was going from one site to the other. I only have experience 301 redirecting one domain to another domain
 
http://www.domain1.com/blue-widgets to http://www.domain3.com/awesome-blue-widgets

Go to index file:
RewriteEngine on
RewriteCond %{HTTP_HOST} ^http://www.domain1.com/blue-widgets [NC]
RewriteRule ^(.*)$ http://www.domain3.com/awesome-blue-widgets $1 [L,R=301,NC]

I think you can rinse and repeat.
 
Back
Top