6: https detection and redirect