Files
2026-06-10 19:48:00 +07:00

14 lines
323 B
ApacheConf

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
<IfModule mod_headers.c>
Header set X-Content-Type-Options nosniff
Header set X-Frame-Options SAMEORIGIN
</IfModule>