For some reason the PHP code is displayed funny. It looks like certain characters were encoded...
Make sure you have
<?php
$lower = strtolower($_SERVER['REQUEST_URI']);
$new = 'http://' . $_SERVER['HTTP_HOST'] . $lower;
if (file_exists(ltrim($lower, '/')) && $_SERVER['PHP_SELF'] != $lower){
header("Location: $new");
exit;
} else {
echo 'Page not found';
}
?>
I just changed all the character codes to real characters. It seems to work on my account.