RewriteEngine On RewriteCond %{HTTP:X-Forwarded-Proto} !https RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L] Deny from all Deny from all Options +FollowSymLinks RewriteEngine on RewriteCond %{HTTP_HOST} ^https://blogbaster.xyz/ RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /index\.php\ HTTP/ RewriteRule ^index\.html$ https://blogbaster.xyz/ [R=301,L] RewriteRule ^index.html$ / [QSA,R] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME}.html -f RewriteRule ^.*$ $0.php [L,QSA] RewriteCond %{THE_REQUEST} ([^\s]*)\.html(\?[^\s]*)? RewriteRule (.*) %1 [R=301,L]