Redirecting SSL traffic properly