# Standard Sentora Rewrite Ruleset
RewriteEngine on
RewriteRule ^api/([^/.]+)/?$ bin/api.php?m=$1 [L]
RewriteRule ^apps/([^/.]+)/?$ etc/apps/$1 [L]
# Optionally you can uncomment the below line and configure your domain to only allow access from the FQDN.
#RewriteCond %{SERVER_NAME} !^sentora.domain.com$
#RewriteRule ^ - [F]
# Deny access to some file types/directories
RewriteRule ^/?(.git|.tx|SQL|config|logs|temp|tests|program/(include|lib|localization|steps)) - [F]
RewriteRule ^(etc/tmp|etc/zppy-cache|/etc/lib/pChart2/cache|etc/build) - [F,L,NC]
# Disable index listing
Options -Indexes