is this redirect OK?

Discussion in 'Search Engine Optimization' started by quarryshark, Feb 20, 2006.

  1. #1
    quarryshark, Feb 20, 2006 IP
  2. mad4

    mad4 Peon

    Messages:
    6,986
    Likes Received:
    493
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Thats not a 301 redirect and won't pass PR.

    You need the following php code or use htaccess
    
    header("HTTP/1.1 301 Moved Permanently"); 
    header("Location: http://www.site.com/newpage.htm"); 
    exit();
    
    PHP:
     
    mad4, Feb 20, 2006 IP
  3. Riboflavin

    Riboflavin Well-Known Member

    Messages:
    1,091
    Likes Received:
    30
    Best Answers:
    0
    Trophy Points:
    155
    #3
    
    <?php
          header("HTTP/1.1 301 Moved Permanently");
          header("Location: http://www.site.com/newpage.htm");
          exit(); 
    ?>
    
    Code (markup):
    You must use php tags.
     
    Riboflavin, Feb 20, 2006 IP