title: force ssl on entire site with codeigniter htaccess
body: <p>I have a codeigniter site, and I want it to force ssl all the time. I'm using the htaccess file to remove the ugly index.php</p>
  
  <p>this is the contents of the htacces file that I have now...</p>
  
  <pre><code> RewriteEngine on
   RewriteCond $1 !^(index\.php|static|robots\.txt)
   RewriteRule ^(.*)$ /index.php/$1 [L]
  </code></pre>
  
  <p>What do I have to do to get it to always use ssl?</p>
  
  <p>Thanks!</p>