Skip to content

Instantly share code, notes, and snippets.

@nickdenardis
Created February 4, 2011 13:53
Show Gist options
  • Save nickdenardis/811128 to your computer and use it in GitHub Desktop.
Save nickdenardis/811128 to your computer and use it in GitHub Desktop.
Chrome is picky about the HTTP code being specified before the Location.
// Redirect
header("HTTP/1.1 301 Moved Permanently");
header('Location: ' . $results['url']);
die();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment