Created
January 9, 2017 14:37
-
-
Save OlegShchavelev/397d4bab48b4b679a3741598afa87660 to your computer and use it in GitHub Desktop.
Регистронезависиммые урлы для Joomla
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
// Регистронезависиммые урлы | |
if($_SERVER['REQUEST_URI'] != strtolower($_SERVER['REQUEST_URI'])){ | |
header('Location: http://'.$_SERVER['HTTP_HOST'].strtolower($_SERVER['REQUEST_URI']), true, 301); | |
exit(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment