title: https and htaccess redirects
body: <p>I currently use the following code in my .htacess to redirect non www to www and to redirect /pages (internally) to /pages.php etc.</p>
  
  <pre><code>RewriteEngine On
  RewriteCond %{HTTP_HOST} ^absoluteglazing.co.uk [NC]
  RewriteRule ^(.*)$ http://www.absoluteglazing.co.uk/$1 [L,R=301]
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteCond %{REQUEST_FILENAME}\.php -f
  RewriteRule ^(.+)$ $1.php [L,QSA]'
  </code></pre>
  
  <p>Now I have switched to https, this no longer works.</p>
  
  <p>Can someone please let me know how to achieve the following using htaccess so it still works over https...</p>
  
  <ul>
  <li>Redirect non www to www so everyone sees website with www</li>
  <li>Redirect non https to https so everyone gets a secure connection</li>
  <li>Redirect /pages to /pages.php internally to remove extension</li>
  </ul>
  
  <p>Many thanks</p>