title: Redirect HTTPS to HTTP on localhost only
body: <p>I'm working on a website locally that contains https links, so when I click on one of these links it takes me to <code>https://localhost/...</code> which doesn't exist as there is no SSL certificate installed.</p>
  
  <p>Is there anything I can add to <code>.htaccess</code> that checks if I'm on localhost and if so redirects <code>https</code> to <code>http</code>? The .htaccess file is used in both local development and production on our server so anything I add mustn't affect the live website.</p>