RewriteEngine On

# Hilangkan .php di URL
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME}\.php -f
RewriteRule ^(.*)$ $1.php [L]

# Redirect index.php → /
RewriteRule ^index$ index.php [L]
