Options -Indexes
RewriteEngine On
RewriteRule ^api/v1/([a-zA-Z0-9_-]+)$ api/v1.php?service=$1 [L,QSA]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^ index.php [L,QSA]
<FilesMatch "^(config\.php|.*\.sql|.*\.log)$">
Require all denied
</FilesMatch>
