Have you considered redirecting already in the webroot folder's
.htaccess file?
...something like this just before the default cake rewrite condition:
RewriteCond %{HTTPS} !=on
RewriteRule ^.*$ https://%{HTTP_HOST} [L,R=301,QSA]
If you only want admin URLs to be redirected the match will need to be
adjusted.
r
[2011-05-12 18:06] - Krissy Masters a écrit :
Is there a way to manually force the redirect to SSL?
I have a redirect like:
$this->redirect( array( 'controller' => 'users', 'action' => 'index',
'admin' => true));
which once directed to gets hit with a 302 temporarily move and my forceSSL
in app_controller re-redirectst to ssl since this location requires SSL
so user gets sent to http://site/users app_controller say no way must be SSL
so redirect again to https://site/users so I want to basically eliminate the
double redirect.
Thanks,
K
--
Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions.
To unsubscribe from this group, send email to
[email protected] For more options, visit this group at
http://groups.google.com/group/cake-php