Forum Moderators: buckworks

Message Too Old, No Replies

301 redirecting old cart links to new cart

         

onlinesource

10:01 pm on Nov 21, 2016 (gmt 0)

10+ Year Member Top Contributors Of The Month



I use Magento and multi store setup which includes a family of domains including a .com site, .com.au site, .in, etc. I recently decided to get rid of my .us domain because my .com domain was a better choice for ranking with Google.com.

I have disabled the .us domain and it's down.

All of my sites use the same structure, meaning /customer-support.html is live at .com/customer-support.html and .us/customer-support.html. I would like any links pointing to .us to simply replace the .us with .com? Is this possible? That way a 404 page like us./about-us.html would just go to .com/about-us.html.

Can this be done in the htaccess for the .us site?

engine

5:20 pm on Nov 22, 2016 (gmt 0)

WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month



You say "get rid", and I assume you mean no longer use in favour of .com. Did you redirect it to .com?

lucy24

6:33 pm on Nov 23, 2016 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Can this be done in the htaccess for the .us site?

Yes. Exact wording will depend on where the two domains currently live; it's obviously easiest if they live in the same place, i.e. same directory on same server. Look at archived posts in the Apache subforum for pointers. Easiest of all is if .us and .com DNS point to the same place, and no other domains share the address, because then the .com's domain-name-canonicalization rule will take care of it without even having to add anything.
Did you redirect it to .com?

I think he's asking whether it's possible.