DirectoryIndex index.php
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteRule ^(.+)\.html?$ /$1.php [R=301,L,NE]
RewriteCond %{HTTP_HOST} !^premiumselfpublishing\.com$ [NC,OR]
RewriteCond %{HTTPS} !=on
RewriteRule ^ https://premiumselfpublishing.com%{REQUEST_URI} [R=301,L,NE]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{DOCUMENT_ROOT}/$1.php -f
RewriteRule ^(.+?)/?$ $1.php [L]
</IfModule>
<FilesMatch "\.(zip|ini|log|md)$">
Require all denied
</FilesMatch>
