Re: Setting Up A Directory For HTTPS Secure Certificate

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

 



GOAL : no one will be able to get to HTTPS directory VIA HTTP.....

So I make this little tester page that seems to work.... Later I'll add auto
redirect.... Is this the kind of thing to add to various pages? Is there a
better way to do this?


<?php
if ($_SERVER['HTTPS'] == 'on')
{ 
} else
{
?>

<a href="<?php
echo 'https://'.$_SERVER['SERVER_NAME'].$_SERVER['REQUEST_URI'];
?>"><?php
echo 'https://'.$_SERVER['SERVER_NAME'].$_SERVER['REQUEST_URI'];
?></a>
<?php
}
?>





--
Thanks - RevDave
Cool @ hosting4days . com
[db-lists 09]




-- 
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