How to find http portion of a URL?
Posted: Thu Apr 27, 2006 9:00 am
Hi everyone,
I want to force a section of a web page to use SSL. In otherwords I was going to header push someone that was visiting http://www.domain.com/checkout.php to https://www.domain.com/checkout.php
I can't seem to find a way to read that part of the url from a PHP environment variable to determine if the script was accessed behind the certificate protected url (https) or not (http)... Any suggestions?
~Uber
I want to force a section of a web page to use SSL. In otherwords I was going to header push someone that was visiting http://www.domain.com/checkout.php to https://www.domain.com/checkout.php
I can't seem to find a way to read that part of the url from a PHP environment variable to determine if the script was accessed behind the certificate protected url (https) or not (http)... Any suggestions?
~Uber