 <p>You can do this in a single redirect rule:</p> <pre><code>RewriteEngine On RewriteCond %{HTTPS} off [OR] RewriteCond %{HTTP_HOST} !=www.ourwebsite.co.uk RewriteRule ^ https://www.ourwebsite.co.uk%{REQUEST_URI} [R=301,L,NE] # rest of rules go below this </code></pre> <p>Make sure to clear your browser cache before testing this change.</p>