Created
May 19, 2014 11:26
-
-
Save mariosant/e11bbdeb614c537ec356 to your computer and use it in GitHub Desktop.
Example php redirection
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function redirect($url, $statusCode = 301) | |
{ | |
header('Location: ' . $url, true, $statusCode); | |
die(); | |
} | |
redirect("http://www.malamis.gr"); | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment