301 redirect htaccess problem - Need help fast

linus500

Registered Member
Joined
Oct 15, 2015
Messages
77
Reaction score
11
I'm trying to do a 301 redirect from one site to another - xyz12.com -> xyz.com

This is my htaccess setup: (removed www. in this example so it doesn't link)
Options +FollowSymLinks
RewriteEngine on

Redirect 301 /good-computers123.html http:/xyz.com/good-computers
Redirect 301 /fishing64.html http:/xyz.com/fishing

Currently, this is how it's redirecting:
xyz12.com/good-computers123.html ->
xyz.com/good-computers123 (which is wrong)
The problem is the slug. The new website does not have the same name for products.

The correct redirect would link from:
abc12.com/good-computers123 ->
abc.com/good-computers

Site is run on magento if that helps

Does anyone have a solution? Appriciate all ideas and input. Thanks for helping!
 
Hi bro!!
How much products do you have??
You can do that manually.....

Redirect 301 /good-computers123.html http:/xyz.com/good-computers.html
Redirect 301 /fishing64.html http:/xyz.com/fishing.html
 
? :)
Hi bro!!
How much products do you have??
You can do that manually.....

Redirect 301 /good-computers123.html http:/xyz.com/good-computers.html
Redirect 301 /fishing64.html http:/xyz.com/fishing.html

Thank you my friend :) I will look into that method aswell, might be useful in the future!

The problem was the "xyz12.com" that was placed directly after the commands at the top. Instead we put that last on the file and it worked.
 
Back
Top