Check if https already before redirect