title: Redirect http to https for certain domains in webapp2
body: <p>We use Google appengine namespaces for a mutli-tenant application. Each tenant has a different domain. Some of the domains need to have ssl enabled but some do not require ssl. For the domains that do require ssl, I'd like all old http links to redirect to their https equivalent.</p>
  
  <p>If we set <code>secure: always</code> in app.yaml, then the domains that do not require ssl (domains that don't have certificates) won't work as all requests are redirect to https.</p>
  
  <p>I assume I need to handle the redirect to https in webapp routing, depending on the domain requested. 
  I've tried the "app_scheme" approach outlined here <a href="https://stackoverflow.com/questions/10804873/how-to-use-wsgi-to-reroute-a-user-from-http-to-https">How to use WSGI to reroute a user from http to https</a> but that doesn't handle redirects to https if accessing via http.</p>
  
  <p>Is there a way to handle redirect without re-writing all the DomainRoutes?</p>