# ================================================
# .htaccess untuk ROOT public_html
# File ini sudah ada, JANGAN DIGANTI
# Hanya untuk referensi
# ================================================

RewriteEngine On
RewriteCond %{HTTP_HOST} ^(www\.)?rhelektronik\.com$ [NC]
RewriteCond %{REQUEST_URI} !^/rhelektronik\.com/
RewriteRule ^(.*)$ /rhelektronik.com/$1 [L]

# Uncomment untuk force HTTPS (jika SSL sudah aktif)
# RewriteCond %{HTTPS} off
# RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
