1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

301 redirect htaccess problem - Need help fast

Discussion in 'White Hat SEO' started by linus500, Jul 14, 2016.

  1. linus500

    linus500 Registered Member

    Joined:
    Oct 15, 2015
    Messages:
    76
    Likes Received:
    10
    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!
     
  2. xenoxen

    xenoxen Jr. VIP Jr. VIP

    Joined:
    Jul 22, 2009
    Messages:
    853
    Likes Received:
    201
    Occupation:
    online.
    Location:
    Europe
    Use other commands for redirects. Google it.
     
  3. SumoHa

    SumoHa Newbie

    Joined:
    Jun 19, 2016
    Messages:
    16
    Likes Received:
    1
    yes you should google how to use other commands
     
  4. linus500

    linus500 Registered Member

    Joined:
    Oct 15, 2015
    Messages:
    76
    Likes Received:
    10
    Pardon my incompetence, but i've done so unsuccessfully. I need further assistance as to what to write exactly if that is a possibility. Thank you!
     
  5. urviews

    urviews Junior Member

    Joined:
    Feb 25, 2012
    Messages:
    126
    Likes Received:
    20
    LOL!
     
  6. elvampiro

    elvampiro Newbie

    Joined:
    Jul 18, 2013
    Messages:
    3
    Likes Received:
    1
    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
     
    • Thanks Thanks x 1
  7. linus500

    linus500 Registered Member

    Joined:
    Oct 15, 2015
    Messages:
    76
    Likes Received:
    10
    ? :)
    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.