Initial commit
This commit is contained in:
12
playarea/scripts/lowercase.php
Normal file
12
playarea/scripts/lowercase.php
Normal file
@@ -0,0 +1,12 @@
|
||||
<?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();
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
Reference in New Issue
Block a user