Rewrite specific rule (html url to php, with https)
<p>I inherited a project with a huge htaccess file doing a lot of rewrites from ".html" urls to php files like this:</p>

<pre><code>RewriteRule ^login\.html$ login.php
</code></pre>

<p>I know there a lot of similar questions around the site, but none of them worked in my case, most of them are just http -> https rewrites/redirections.</p>

<p>I just want to change <strong>only that specific rule</strong> with the following behaviour:</p>

<p>1.- <a href="http://www.example.com/login.html" rel="nofollow">http://www.example.com/login.html</a> --> should go to --> <a href="https://www.example.com/login.html" rel="nofollow">https://www.example.com/login.html</a></p>

<p>2.- <a href="https://www.example.com/login.html" rel="nofollow">https://www.example.com/login.html</a> --> should map to login.php file (like in the rewrite above).</p>

<p>htaccess solution prefered, but any others would be appreciated also.</p>