Files
BiveEngine/playarea/scripts/lowercase.php
2025-12-24 19:19:01 +03:00

13 lines
318 B
PHP

<?php
if ( $_SERVER['REQUEST_URI'] != strtolower( $_SERVER['REQUEST_URI']) ) {
$urlHaveGet = '/\?/i';
if(preg_match($urlHaveGet, $_SERVER['REQUEST_URI']) == 0){
header('Location: http://'.$_SERVER['HTTP_HOST'] .
strtolower($_SERVER['REQUEST_URI']), true, 301);
exit();
}
}
?>