Options -Indexes RewriteEngine On # Route semua /api/* ke api/index.php RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^api/(.*)$ api/index.php [QSA,L] # Security Header set X-Content-Type-Options nosniff Header set X-Frame-Options SAMEORIGIN