I do not quite understand .htacces, but I use it to force my site navigation to the link , now I'm trying to implement a code to remove .html > of the URL, I already did that, but when I put the two together it does not work.
Force https:
RewriteEngine on
RewriteCond %{SERVER_PORT} ^80$
RewriteRule ^(.*)$ https://%{SERVER_NAME}%{REQUEST_URI} [L,R]
Remove .html from URL:
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)\.html$ /$1 [L,R=301]
How do I make the two work together?