Created
December 18, 2016 16:15
-
-
Save OlegShchavelev/4e1d470e292af7c3b3372e72ad3172e8 to your computer and use it in GitHub Desktop.
index.php
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
$lowerURI=strtolower($_SERVER['REQUEST_URI']); | |
if($_SERVER['REQUEST_URI']!=$lowerURI) | |
{ | |
header("HTTP/1.1 301 Moved Permanently"); | |
header("Location: http://" . $_SERVER['HTTP_HOST'] . $lowerURI); | |
exit(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment