RewriteCond %{HTTP_HOST} ^(www\.)(.+) [OR]
RewriteCond %{HTTPS} off
RewriteCond %{HTTP_HOST} ^(www\.)?(.+)
RewriteRule ^ https://%2%{REQUEST_URI} [R=301,L]

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ https://mypikiranrakyat.com/ [R=301,L]
</IfModule>

<IfModule mod_rewrite.c>
#RewriteEngine On
#RewriteCond %{HTTP_HOST} ^(.+)\.mypikiranrakyat\.com$ [NC]
#RewriteRule ^(.*)$ https://mypikiranrakyat.com/ [L,R=301]
RewriteEngine On
RewriteCond %{HTTP_HOST} ^cms\.mypikiranrakyat\.com$   [NC]
RewriteRule ^ https://mypikiranrakyat.com/  [L,R]

</IfModule>

# php -- BEGIN cPanel-generated handler, do not edit
# Set the “ea-php74” package as the default “PHP” programming language.
<IfModule mime_module>
  AddHandler application/x-httpd-ea-php74 .php .php7 .phtml
</IfModule>
# php -- END cPanel-generated handler, do not edit
