The other simple way if you have apache is telling the virtual host <Virtualhost *:80> servername machin
redirect / https://machin </Virtualhost> "Et voilà !" Every resquest on http is carefully redirected on https. Isaak Malik wrote: > The SSL forcing can easily be created with the following code: > > <?php > if ( !isset($_SERVER['HTTPS']) ) header('Location: > https://www.yourdomain.com'); > ?> > > If you include this code at the beginning of your page this will force a SSL > connection for that page. > > On Sat, Mar 22, 2008 at 6:44 AM, photo312 <[EMAIL PROTECTED]> wrote: > >> You are correct. What I meant is - is there any functionality to force >> "https" over "http" or make only certain models or actions work only over >> SSL connections? >> >> >> >> Karl Katzke wrote: >>> SSL is a function of your web *server*, such as apache or IIS, not of >> Zend >>> Framework. >>> >>> On Sat, Mar 22, 2008 at 12:29 AM, photo312 <[EMAIL PROTECTED]> wrote: >>> >>>> I would like to implement SSL with Zend Framework. Is there some built >> in >>>> code to handle this properly? >>>> -- >>>> View this message in context: >>>> >> http://www.nabble.com/Implementing-SSL-with-Zend-Framework-tp16216607s16154p16216607.html >>>> Sent from the Zend Framework mailing list archive at Nabble.com. >>>> >>>> >>> >> -- >> View this message in context: >> http://www.nabble.com/Implementing-SSL-with-Zend-Framework-tp16216607s16154p16216688.html >> Sent from the Zend Framework mailing list archive at Nabble.com. >> >> > > -- Bruno Friedmann [EMAIL PROTECTED] Ioda-Net Sàrl - www.ioda-net.ch 2830 Vellerat - Switzerland Tél : ++41 32 435 7171 Fax : ++41 32 435 7172 gsm : ++41 78 802 6760 C'est Facile et Cool d'Évoluer en ligne : www.cfcel.com