Skip to content

Instantly share code, notes, and snippets.

@CrowderSoup
Created September 15, 2012 21:24
Show Gist options
  • Save CrowderSoup/3729846 to your computer and use it in GitHub Desktop.
Save CrowderSoup/3729846 to your computer and use it in GitHub Desktop.
Simple PHP Redirect
<?php
header('HTTP/1.1 301 Moved Permanently');
header('Location: http://example.com');
?>
<?php
header('Location: http://example.com');
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment