Files
api-btekno/public/.htaccess

23 lines
552 B
ApacheConf
Raw Permalink Normal View History

# Slim Framework 4 .htaccess
# Pastikan semua request diarahkan ke index.php
<IfModule mod_rewrite.c>
RewriteEngine On
# Redirect to index.php if file doesn't exist
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^ index.php [QSA,L]
</IfModule>
# Security headers
<IfModule mod_headers.c>
Header set X-Content-Type-Options "nosniff"
Header set X-Frame-Options "SAMEORIGIN"
Header set X-XSS-Protection "1; mode=block"
</IfModule>
# Disable directory browsing
Options -Indexes