How to force HTTPS to use Zend Framework 1 Zend_View_Helper_Urland the request object?
I have this, but I'm looking for a way to ZF1 without matching the _SERVER variables ...
if (!$this->getRequest()->isSecure()) {
$this->redirect(
'https://' . $_SERVER['SERVER_NAME'] . $_SERVER['REQUEST_URI']
);
}
Please do not offer a solution .htaccess. Too many questions asked by Zend code with mod_rewrite suggestions.
I know that you can pass optionsURL / redirect to the helper, but I'm not sure how this is done.
pseudo code:
$this->redirect(array('useHttps' => true), $this->getRequest()->getRequestUri());
source
share