From the controller, to make a redirect i would :
php $this->response->redirect('login/index');
If i am on HTTP, redirect will stay on HTTP.
Is there an easy way to redirect to a HTTPS link , without having to provide the hostname ? ( we have devel-host ,staging,live )