domain change redirection

Discussion in 'Forum Management' started by Webdevloper1, Aug 15, 2009.

  1. #1
    Webdevloper1, Aug 15, 2009 IP
  2. ascensions

    ascensions Active Member

    Messages:
    175
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    58
    #2
    If you don't know how, you probably should stick with just redirecting them to your root.

    Otherwise, simple code left at the head of your topic pages (on ABC.com) should do the trick:

    
    
    <?
    header("Status: 301 Moved Permanently", true, 301);
    header("Location: http://def.com/forum/showthread.php?t={$_REQUEST['t']}");
    ?>
    
    
    Code (markup):
     
    ascensions, Aug 15, 2009 IP
  3. Webdevloper1

    Webdevloper1 Active Member

    Messages:
    453
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    90
    #3
    cant i trick something in htaccess files?
    as i have 5k pages indexed already..& i cant edit them all...
    So anything i can add in htaccess file? so it will redirect all pages automatically?
     
    Webdevloper1, Aug 16, 2009 IP
  4. ascensions

    ascensions Active Member

    Messages:
    175
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    58
    #4
    You don't need to edit them... there's just one file if it's dynamic "showthread.php"
     
    ascensions, Aug 16, 2009 IP
  5. digitalpoint

    digitalpoint Overlord of no one Staff

    Messages:
    38,334
    Likes Received:
    2,613
    Best Answers:
    462
    Trophy Points:
    710
    Digital Goods:
    29
    #5
    One of the first threads here.
     
    digitalpoint, Aug 19, 2009 IP