Corrected SSL redirect code.