title: How to Apply HTTPS with htaccess to homepage only?
body: <p>I have a website that has a login section on homepage which requires HTTPS. For example if I go to <a href="http://example.com" rel="nofollow">http://example.com</a> and try to login, I get an error message, but if I login from <a href="https://example.com" rel="nofollow">https://example.com</a> then it works correctly. So how can I make only the homepage use HTTPS? I don't want the whole site to use HTTPS.</p>
  
  <p>Basically after logging in from <a href="https://www.example.com" rel="nofollow">https://www.example.com</a> I would get redirected to <a href="https://www.example.com/account-page" rel="nofollow">https://www.example.com/account-page</a>. So these 2 places would be the only places with HTTPS.</p>