RewriteEngine On

# Jika request bukan file/folder yang benar-benar ada, arahkan ke index.php
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [L]

# Blokir akses langsung ke folder application & system (proteksi tambahan)
RewriteRule ^(application|system)\/.*$ index.php [L]

# Nonaktifkan directory listing
Options -Indexes

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