On 4/9/07, Ben Liu <[EMAIL PROTECTED]> wrote:
What's the prescribed method for redirecting a user forcibly to from
the non-SSL secured version of a page to the SSL-secured version? Is
this handled at the web server level or at the script level. I found
this by googling:
<?php
if($_SERVER['SERVER_PORT'] !== $encport || $_SERVER['HTTPS'] !== "on")
{header("Location: https://".$_SERVER['SERVER_NAME'].$_SERVER
['SCRIPT_NAME']);exit;}
?>
What do people think about this solution?
Thanks,
- Ben
Apache mod_rewrite maybe?
Tijnema
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php