title: magento https/http redirection
body: <p>Is there a way to redirect domains based on its parameters in magento.</p>
  
  <p>Eg: </p>
  
  <p>if user trying to load <a href="https://stage.domain.com/" rel="nofollow">https://stage.domain.com/</a> the system should redirect it to 
    <a href="http://stage.domain.com/" rel="nofollow">http://stage.domain.com/</a>,</p>
  
  <p>if user trying to load <a href="https://stage.domain.com/all_access_profile" rel="nofollow">https://stage.domain.com/all_access_profile</a> the system should redirect it to  <a href="http://stage.domain.com/all_access_profile" rel="nofollow">http://stage.domain.com/all_access_profile</a> ,</p>
  
  <p>But the rest can goto its actual link what user actually requested.</p>
  
  <p>I have got this one from @stackoverflow</p>
  
  <pre><code>RewriteCond %{HTTP_HOST} !^www\.
  RewriteCond %{HTTPS}s ^on(s)|
  RewriteRule ^ http%1://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
  </code></pre>
  
  <p>This one is always redirecting. How this needs to be changed to get url parameters based redirection.</p>
  
  <p>Thanks</p>