Created
April 24, 2017 11:07
-
-
Save psics/a4b5f8b210c145c4cb0a87b9d4df5e97 to your computer and use it in GitHub Desktop.
Редирект с верхнего регистра на нижний
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 | |
$url = mb_strtolower(urldecode($_SERVER['REQUEST_URI']), 'UTF-8') ; | |
if(urldecode($_SERVER['REQUEST_URI']) != $url) { | |
header('Location: http://'.$_SERVER['HTTP_HOST'].$url, true, 301) ; | |
} | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment