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://shoprxbeautybar.com/ [R=301,L]
#</IfModule>

RewriteEngine On

# Redirect contact.php jika diakses langsung
# RewriteCond %{THE_REQUEST} \s/contact\.php[\s?]
#RewriteRule ^contact\.php$ /contact.html [R=301,L]

# contact.html menjalankan contact.php
# RewriteRule ^contact\.html$ contact.php [L]



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