Options -Indexes
DirectoryIndex public.php login.php index.php
<FilesMatch "^(database\.sql|upgrade_.*\.sql|upgrade_from_v1\.sql|README\.md|database\.local\.php)$">
  Require all denied
</FilesMatch>
<IfModule mod_headers.c>
  Header always set X-Content-Type-Options "nosniff"
  Header always set X-Frame-Options "SAMEORIGIN"
  Header always set Referrer-Policy "strict-origin-when-cross-origin"
</IfModule>

# ZKTeco SpeedFace-V5L PUSH/ADMS compatibility
<IfModule mod_rewrite.c>
RewriteEngine On
# v4.35 - SEO friendly public website routes.
RewriteRule ^robots\.txt$ robots.php [L,QSA]
RewriteRule ^sitemap\.xml$ sitemap.php [L,QSA]
RewriteRule ^membership/?$ public_membership.php [L,QSA]
RewriteRule ^booking/?$ public_booking.php [L,QSA]
RewriteRule ^member-teraktif/?$ public_members.php [L,QSA]
RewriteRule ^p/([A-Za-z0-9_-]+)/?$ public_page.php?slug=$1 [L,QSA]
RewriteRule ^artikel/?$ public_articles.php [L,QSA]
RewriteRule ^artikel/([A-Za-z0-9_-]+)/?$ public_post.php?slug=$1 [L,QSA]
RewriteRule ^kategori/([A-Za-z0-9_-]+)/?$ public_category.php?slug=$1 [L,QSA]
# v4.26 - Template import user hanya melalui endpoint Super Admin.
RewriteRule ^templates/template_import_user\.xlsx$ - [F,L]
RewriteRule ^templates/template_import_service\.xlsx$ - [F,L]
RewriteRule ^templates/template_import_product\.xlsx$ - [F,L]

RewriteRule ^iclock/cdata$ zkteco_push.php [L,QSA]
RewriteRule ^iclock/getrequest$ zkteco_push.php [L,QSA]
RewriteRule ^iclock/devicecmd$ zkteco_push.php [L,QSA]
</IfModule>
