Created
September 6, 2017 20:52
-
-
Save girol/6b6bd6d4ee536d391d7d1ab195a03ffb to your computer and use it in GitHub Desktop.
PHP 301 HTTP Redirect
This file contains 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 | |
// Sets the http header to 301 - Good for search engines | |
header("HTTP/1.1 301 Moved Permanently"); | |
header("Location: http://mynewwebsite.com"); | |
exit(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment