title: How can i redirect the whole path to HTTPS?
body: <p>I have searched, but yet to find the answer.</p>
  
  <p>I have a site for recipes, and all recipes go in path like this:</p>
  
  <pre><code>http://example.com/recipe/recipe-name
  </code></pre>
  
  <p>How can i redirect this whole path to HTTPS?</p>
  
  <p>Right now i have only redirects to my homepage, that is working fine.</p>
  
  <pre><code>    RewriteCond %{HTTP_HOST} ^example\.com [NC]
      RewriteCond %{SERVER_PORT} 80
      RewriteRule ^(.*)$ https://example.com/$1 [R,L]
  
      RewriteCond %{HTTP_HOST} ^www\.example\.com [NC]
      RewriteCond %{SERVER_PORT} 80
      RewriteRule ^(.*)$ https://example.com/$1 [R,L]
  </code></pre>
  
  <p>Thanks.</p>