I want to redirect my application from http to https if I’m using a certain controller. How would I do this? I don’t really want a .htaccess rewrite because I’m using lots of Zend routes preferably I’d like a method within Zend which can do it
Share
If you want to do that for all actions inside your controller, you could perform the redirect in the
init()function using the controller’s_redirect()function: