refactored https redirect