301 instead of 302 for HTTPS redir

Changed to a permanent redirect rather than temporary when suggesting
HTTPS over HTTP. This will cause the client to remember that path.