Started adding ssl redirection support