Hello,
I wrote(attempted) to write a script to detect if the user was coming in on 80 or 443, and if 80 it would do a header redirect to HTTPS.
I can't test it ATM, and I wanted to add this to a script.
Can someone tell me if this works, or test it for me?
if($HTTPS != 'on') {
header("Location: https://".$HTTP_HOST."/".$REQUEST_URI);
}
phpinfo()
Basically if the script works, it'll show the basic phpinfo() page but instead of being on http, it'll be on https.
Simple, but i'm a newb anyways.
Thanks for the help if you can, will +rep!
~brandon
I wrote(attempted) to write a script to detect if the user was coming in on 80 or 443, and if 80 it would do a header redirect to HTTPS.
I can't test it ATM, and I wanted to add this to a script.
Can someone tell me if this works, or test it for me?
if($HTTPS != 'on') {
header("Location: https://".$HTTP_HOST."/".$REQUEST_URI);
}
phpinfo()
Basically if the script works, it'll show the basic phpinfo() page but instead of being on http, it'll be on https.
Simple, but i'm a newb anyways.
Thanks for the help if you can, will +rep!
~brandon






