Skip to content

Instantly share code, notes, and snippets.

@cvele
Last active August 29, 2015 14:04
Show Gist options
  • Save cvele/51529355d5a0d0c43709 to your computer and use it in GitHub Desktop.
Save cvele/51529355d5a0d0c43709 to your computer and use it in GitHub Desktop.
<?php
function __redirect($url)
{
header( 'Content-type: text/html; charset=utf-8' );
header("Location: " . $url, true, 307 );
echo "<html></html>";
flush();
ob_flush();
exit;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment