Welcome to WebmasterWorld Guest from 54.242.193.41

Forum Moderators: buckworks

Message Too Old, No Replies

301 redirecting old cart links to new cart

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

Full Member

5+ Year Member Top Contributors Of The Month

joined:May 11, 2012
posts: 320
votes: 3


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?
5:20 pm on Nov 22, 2016 (gmt 0)

Administrator from GB 

WebmasterWorld Administrator engine is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

joined:May 9, 2000
posts:26187
votes: 970


You say "get rid", and I assume you mean no longer use in favour of .com. Did you redirect it to .com?
6:33 pm on Nov 23, 2016 (gmt 0)

Senior Member from US 

WebmasterWorld Senior Member lucy24 is a WebmasterWorld Top Contributor of All Time 5+ Year Member Top Contributors Of The Month

joined:Apr 9, 2011
posts:15706
votes: 813


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.