title: Symfony - Auto redirect
body: <p>I'd like to create some service that would be responsible for auto-redirecting some routes to secure version of the URL. For example:</p>
  
  <pre><code>http://domain.com/checkout -&gt; https://secure.domain.com/checkout
  http://domain.com/about // route not marked as secure, no redirection
  </code></pre>
  
  <p>I know I can partially achieve that with schema:</p>
  
  <pre><code>secure:
      path:     /secure
      defaults: { _controller: AcmeDemoBundle:Main:secure }
      schemes:  [https]
  </code></pre>
  
  <p>However I also need to change hosts. Should I hook up to some kernel events or something?</p>