SSL redirect correction