regarding 301 redirect

Discussion in 'Search Engine Optimization' started by mafrussian, Jul 29, 2007.

  1. #1
    for a PHP Redirect do I just put this code in the index of which I want the search engine to redirect to?

    so for example I would put this in http://www.paydayloans-pay-day-loans.com
    <?
    Header( "HTTP/1.1 301 Moved Permanently" );
    Header( "Location: http://paydayloans-pay-day-loans.com" );
    ?>


    does that seem correct?
    thanks
     
    mafrussian, Jul 29, 2007 IP
  2. trichnosis

    trichnosis Prominent Member

    Messages:
    13,785
    Likes Received:
    333
    Best Answers:
    0
    Trophy Points:
    300
    #2
    yes, it's true.

    another way is adding

    to your .htaccess file
     
    trichnosis, Jul 29, 2007 IP