How to make the URL to be always in lowercase even if user types in an uppercase URL?? This is done in facebook even if we type uppercase URL it converts it to lowercase.
I have tried some of the things in htaccess but they are not working for me...
NO ONE CAN HELP......???
Have you looked at the strtolower()
function?
I found out this on CI forumn....here is the code rest all is useless.......!!!
$server_url = $_SERVER['SERVER_NAME'] . $_SERVER['REQUEST_URI'];
if ($server_url !== strtolower($server_url))
{
header('Location: http://' . strtolower($server_url), TRUE, 301);
}