Rewriting SendRedirect to deal with SSL (or https) offloading