#RewriteEngine On
#RewriteCond %{SERVER_PORT} 80 443
#RewriteRule ^(.*)$ https://www. domain .com/$1 [R,L]
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress
# php -- BEGIN cPanel-generated handler, do not edit
# Set the “ea-php56” package as the default “PHP” programming language.
<IfModule mime_module>
AddType application/x-httpd-ea-php56 .php .php5 .phtml
</IfModule>
# php -- END cPanel-generated handler, do not edit
<Files 403.shtml>
order allow,deny
allow from all
</Files>
A general observation, rather than an answer to your question:
<IfModule mod_rewrite.c>
You should only use IfModule once, for testing. Once you have established that the module is enabled, remove the IfModule rule. Otherwise you are continually wasting system resources needlessly checking for the existence of the module when you already know it is there.