Consider the following rules
RewriteRule ^index\.html$ index.php [L]
RewriteRule ^index\.php$ index.html [R=301]
I want .html to use the .php file, but I want the url to have the .html extension always.
The above rule creates a redirection loop. What's the right way to do this?