Options -Indexes
RewriteEngine On

# ===============================
# ROOT URL (/) — WAJIB ADA
# ===============================
RewriteRule ^$ public/index.php [L]

# ===============================
# Virtual public folders
# ===============================
RewriteRule ^(assets|uploads)/(.*)$ public/$1/$2 [L,QSA]

# ===============================
# Real files & folders
# ===============================
RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^ - [L]

# ===============================
# Front Controller
# ===============================
RewriteRule ^(.+)$ public/index.php [L]

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

<Files 403.shtml>
order allow,deny
allow from all
</Files>

deny from 185.177.72.23
