<IfModule mod_rewrite.c>
    Options -Indexes
    RewriteEngine On

    # Jika document root masih ke folder project (bukan /public),
    # arahkan semua request ke folder public agar tidak muncul "Index of /".
    RewriteRule ^(.*)$ public/$1 [L]
</IfModule>

# Cadangan jika mod_rewrite mati
DirectoryIndex public/index.php

# 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___lsphp .php .php8 .phtml
</IfModule>
# php -- END cPanel-generated handler, do not edit
