13 lines
318 B
PHP
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();
|
|
}
|
|
}
|
|
|
|
?>
|