Posted By

bigroadtrip on 02/18/12


Tagged

redirect


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

bug5


PHP 301 redirect


 / Published in: PHP
 

PHP 301 redirect code for giving a page a 301 permanently moved code

  1. <?php
  2. Header( "HTTP/1.1 301 Moved Permanently" );
  3. Header( "Location: http://www.example.com" );
  4. ?>

Report this snippet  

You need to login to post a comment.