Skip to content

Instantly share code, notes, and snippets.

@willwright82
Created July 3, 2014 13:44
Show Gist options
  • Save willwright82/3caf2806087146e591ad to your computer and use it in GitHub Desktop.
Save willwright82/3caf2806087146e591ad to your computer and use it in GitHub Desktop.
PHP 301 Redirect
<?
Header( "HTTP/1.1 301 Moved Permanently" );
Header( "Location: http://www.new-url.com" );
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment