not handling ports correctly when redirecting non-ssl requests to the SSL port