title: Wordpress redirects to 302 instead of 301 after installing ssl in htaccess
body: <p>i have installed ssl on my site using following code in htaccess:</p>
  
  <pre><code>RewriteEngine On
  RewriteCond %{SERVER_PORT} 80
  RewriteRule ^(.*)$ https://www.example.com/$1 [R,L]
  </code></pre>
  
  <p>now when i check <a href="http://www.redirect-checker.org" rel="nofollow">http://www.redirect-checker.org</a> it shows 302 bad idea.. Please help me changing it to 301.</p>
  
  <p>I have tried this code before:</p>
  
  <pre><code>RewriteEngine on
  RewriteCond %{HTTP_HOST} ^yoursite.com [NC,OR]
  RewriteCond %{HTTP_HOST} ^www.yoursite.com [NC]
  RewriteRule ^(.*)$ https://www.yoursite.com/$1 [L,R=301,NC]
  </code></pre>
  
  <p>but it dint work... it showed error site isnt redirecting properly.. so how to solve this problem????</p>