Fixing redirection from HTTP -> HTTPs