Possible Redirect SCRIPT:confused:

Discussion in 'PHP' started by bee bird, Aug 1, 2006.

  1. #1
    bee bird, Aug 1, 2006 IP
  2. Cryogenius

    Cryogenius Peon

    Messages:
    1,280
    Likes Received:
    118
    Best Answers:
    0
    Trophy Points:
    0
    #2
    I think you really want to use mod_rewrite. See the FAQ at the top of the Apache forum.

    Otherwise, you'd have something like this in the file 'test/index.php':

    
    $newplace = '/test2/main.php';
    header('HTTP/1.1 301 Moved Permanently');
    header("Location: http://" . $_SERVER['SERVER_NAME'] . $newplace );
    exit;
    PHP:
    Cheers, Cryo.
     
    Cryogenius, Aug 1, 2006 IP