RewriteEngine On

# Kalau akses root domain
RewriteRule ^$ index.php [L]

# Mapping manual menu penting
RewriteRule ^beranda/?$ index.php [L]
RewriteRule ^login/?$ auth-login.php [L]
RewriteRule ^daftar/?$ auth-register.php [L]
RewriteRule ^referral/?$ referal.php [L]
RewriteRule ^togel/?$ lottery.php [L]

# Otomatis semua file .php bisa tanpa .php
RewriteCond %{REQUEST_FILENAME}.php -f
RewriteRule ^([a-zA-Z0-9_-]+)/?$ $1.php [L]

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