1
Folks I’m trying to rewrite in . htaccess to force https on all pages and hide the . php extension. He’s staying at the kinghost and I already have the certificate. I have separate codes but I couldn’t do both together where every page contains https and no extension . php example : https://menudominio/contact us
htaccess code to remove the . 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]