RewriteEngine On
RewriteBase /enerji/
RewriteRule ^api/(.*)$ api/index.php?action=$1 [QSA,L]
Options -Indexes
<FilesMatch "\.(sql|log|sh|md)$">
Order deny,allow
Deny from all
</FilesMatch>
<Files "config.php">
Order deny,allow
Deny from all
</Files>
<IfModule mod_headers.c>
Header set X-Content-Type-Options "nosniff"
Header set X-Frame-Options "SAMEORIGIN"
</IfModule>
<IfModule mod_php.c>
php_value upload_max_filesize 10M
php_value post_max_size 12M
php_value session.cookie_httponly 1
</IfModule>
<IfModule mod_deflate.c>
AddOutputFilterByType DEFLATE text/html text/css application/javascript application/json
</IfModule>
