Skip to content

Instantly share code, notes, and snippets.

@lynettechandler
Created November 28, 2015 19:21
Show Gist options
  • Save lynettechandler/f4fca7e300d61d2534ee to your computer and use it in GitHub Desktop.
Save lynettechandler/f4fca7e300d61d2534ee to your computer and use it in GitHub Desktop.
PHP header redirect
<?php
header("Location: http://www.example.com/"); /* Redirect browser */
/* Make sure that code below does not get executed when we redirect. */
exit;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment