Created
January 28, 2014 02:03
-
-
Save ryanburgess/8661169 to your computer and use it in GitHub Desktop.
If url contains HTTPS redirect to HTTP.
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 | |
| if ($_SERVER['HTTPS'] == "on") { | |
| $url = "http://". $_SERVER['SERVER_NAME'] . $_SERVER['REQUEST_URI']; | |
| header("Location: $url"); | |
| exit; | |
| } | |
| ?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment