Personal I'm trying to make a rule in .htaccess to force https on all pages and hide the .php extension. It is hosted on kinghost and I already have the certificate. I have the separate codes but I could not do the two things together where every page contains https and no extension .php example: link
htaccess code to remove .php extension
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME}\.php -f
RewriteRule ^(.*)$ $1.php
htaccess code to force https
RewriteEngine On
RewriteCond %{SERVER_PORT} 80
RewriteRule ^(.*)$ https://seusitecomhttps.com.br/$1 [R,L]