301 redirect part of site A to new site B?

Discussion in 'Site & Server Administration' started by Pixelrage, Mar 24, 2008.

  1. #1
    How would you go about redirecting something like this:

    abc.com/cars (that entire directory and all pages within it)

    to:

    xyz.com?

    I'm having a hard time understanding which of these 2 sites' HTACCESS files will have the actual 301 statement (or will both?) :confused:
     
    Pixelrage, Mar 24, 2008 IP
  2. whittier

    whittier Active Member

    Messages:
    43
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    71
    #2
    Here is the answer to the easy part of your question:

    You only need to add the redirect to the .htaccess file on abc.com. This redirect does involve the .htaccess file on xyz.com.
     
    whittier, Mar 26, 2008 IP
  3. maestria

    maestria Well-Known Member

    Messages:
    705
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    110
    #3
    2 ways, either you can do it using .htaccess.
    Or put an index.html or index.php inside the cars directory and then using <a href tag, you can set a redirect to xyz.com
     
    maestria, Mar 26, 2008 IP