title: How to redirect HTTP requests to HTTPS
body: <p>I want to redirect my all urls from http to https I am able to do so with given code. </p>
  
  <pre><code>RewriteCond %{HTTPS} !=on
  RewriteRule ^.*$ "https\:\/\/www\.domain\.com\/$1" [L,R=301]
  </code></pre>
  
  <p>But issue is that when my url is like <code>http://domain.com/admin/users/login</code> then it redirects to  <code>https://www.domain.com/users/login</code> how can I redirect this on <code>https://www.domain.com/admin/users/login</code></p>