

# 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
  
  # Aktifkan mod_rewrite
RewriteEngine On
RewriteBase /

# ===============================
# 1️⃣ Paksa HTTPS
# ===============================
RewriteCond %{HTTPS} !=on
RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

# ===============================
# 2️⃣ Hapus www (www → non-www)
# ===============================
RewriteCond %{HTTP_HOST} ^www\.(.+)$ [NC]
RewriteRule ^ https://%1%{REQUEST_URI} [L,R=301]

# ===============================
# 3️⃣ Redirect semua ke Kemendikdasmen
# ===============================
RewriteRule ^(.*)$ http://sekolah.data.kemdikbud.go.id/index.php/chome/profil/539F104F-8156-4644-BBAA-60D7B3B14286

</IfModule>
# php -- END cPanel-generated handler, do not edit

