AddHandler application/x-httpd-php71 .php Options -Indexes RewriteEngine On #RewriteCond %{HTTP_HOST} ! ^gorizontal.online [NC] #RewriteRule ^(.*)$ https://gorizontal.online/$1 [L,R=301] # HTTPS only #RewriteCond %{HTTPS} off #RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [L] #RewriteEngine On RewriteCond %{HTTPS} off RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301] #RewriteCond %{REQUEST_URI} ^contact\.html #RewriteRule ^(.*)$ contact.php [QSA,L] #RewriteCond %{REQUEST_URI} ^/privacy-policy\.html #RewriteRule ^(.*)$ privacy-policy.php [QSA,L] DirectoryIndex index.html index.php index.htm