 <p>Replace your current code to force <code>HTTPs</code> and <code>WWW</code> with this:</p> <pre><code>RewriteEngine On #Force SSL and WWW RewriteCond %{HTTP_HOST} !^www\. [NC,OR] RewriteCond %{HTTPS} !=on RewriteCond %{HTTP_HOST} ^(?:www\.)?(.+)$ [NC] RewriteRule ^ https://www.%{SERVER_NAME}%{REQUEST_URI} [R=301,L,NE] </code></pre> <p>This will force <code>WWW</code> and <code>SSL</code> on everything.</p>