# LKLAS public front controller
Options -Indexes
DirectoryIndex index.php

# Handler cPanel/LiteSpeed HANYA jika modul PHP Apache (mod_php) TIDAK aktif.
# Di Windows portable, php_module aktif — AddHandler php83 akan bikin browser
# mengunduh file (mis. /install) alih-alih menampilkan halaman.
<IfModule !php_module>
  <IfModule mime_module>
    AddHandler application/x-httpd-ea-php83 .php .php8 .phtml
  </IfModule>
  <IfModule LiteSpeed>
    AddHandler application/x-httpd-php83 .php
  </IfModule>
</IfModule>

<IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^ index.php [L,QSA]
</IfModule>
