How to redirect one domain to another domain

Discussion in 'WordPress' started by mixtaka, May 27, 2010.

  1. #1
    I have two wordpress site . www.A.com and www.B.com, now i want whenever anyone open www.A.com from all around the world except America, the site redirect to www.B.com.

    can anyone help me.
     
    mixtaka, May 27, 2010 IP
  2. rono

    rono Greenhorn

    Messages:
    84
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    16
    #2
    Hmm.
    Conditional redirection.
    I think the first people you should talk to is your ISP.
    This will probably involve some DNS tweaking.

    It also can be done with client-side JavaScript.
    Not sure it will be a good thing from and SEO standpoint, since you have to redirect the page to the other site.
     
    rono, May 27, 2010 IP
  3. DanDemarco

    DanDemarco Guest

    Messages:
    27
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Go to your cpannel, under forwarding set domain A to go to domain b.

    Its that simple

    Dan DeMarco
     
    DanDemarco, May 29, 2010 IP
  4. mixtaka

    mixtaka Active Member

    Messages:
    267
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    53
    #4
    Please understand, i want redirect A to B all over the world except India. will you understand exactly what i want
     
    mixtaka, May 29, 2010 IP
  5. 1gn1t0r

    1gn1t0r Peon

    Messages:
    74
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Create index.php on domain A with the following content:

    header ("Location: http://www.domainB.com");

    exit;
     
    1gn1t0r, May 29, 2010 IP
  6. mixtaka

    mixtaka Active Member

    Messages:
    267
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    53
    #6
    please read question carefully
     
    mixtaka, May 29, 2010 IP