turn off the www

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



now.....

I am using the following code to turn http into https and get my ssl
working.

if($HTTP_SERVER_VARS["HTTPS"] != "on")
{
   $newurl = "https://"; . $_SERVER["SERVER_NAME"] . $_SERVER["REQUEST_URI"];
header("location: $newurl");
}


However I set the ssl up on http://mydomain.com not http://www.mydomain.com
and it give me a warning which I do not want the users to see.

Can I do someting to make any page automatically redirtect as above using
https WITHOUT the www in this format

https://mydomain.com


thanks

R.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux