PHP 301 Redirect

An entry by teli on 03/29/2007

This is just a bit of code for my own personal reference:

header('HTTP/1.1 301 Moved Permanently’);
header(’Location: ‘.URL);
header(’Connection: close’);

# | Leave your comment | Filed in: Geekie Stuff

One Response to “PHP 301 Redirect”

  1. Frederick Says:

    Interesting - I was just about to implement some 301 redirects for my Geekie.org site, and I happened to see that this post is the only post with the tag “geekie” other than my own site.