SetEnv noconntimeout 1
SetEnv noabort 1

# 2. LOGIKA REWRITE & MASKING URL
RewriteEngine On

# A. Paksa HTTPS agar koneksi selalu aman
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

# B. Masking: Sembunyikan folder /webcp/public/ dari URL
# Aturan ini membuat mienyinyir.com/menu secara internal mengambil data dari webcp/public/index.php/menu
RewriteCond %{REQUEST_URI} !^/webcp/public/
RewriteCond %{HTTP_HOST} ^(www.)?mienyinyir.com$
RewriteRule ^(.*)$ webcp/public/$1 [L]

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