Handle redirction from http -> https