Options -Indexes
RewriteEngine On
RewriteRule (^|/)\.(env|git) - [F,L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^api/v1/(activate|validate|request-license|portal-status)$ index.php?action=$1 [QSA,L]
RewriteRule ^status/?$ status.php [QSA,L]
RewriteRule ^download/latest/?$ download.php?latest=1 [QSA,L]
RewriteRule ^download/?$ download.php [QSA,L]
RewriteRule ^admin/?$ admin/index.php [QSA,L]
RewriteRule ^admin/(dashboard|licenses|products|users|email|installer|portal|branding|settings|logs)/?$ admin/index.php?section=$1 [QSA,L]
