# Apache fallback only. Strongly prefer configuring the domain document root to public/.
Options -Indexes
RewriteEngine On
RewriteRule ^(src|private|tests|examples)(/|$) - [F,L,NC]
RewriteRule ^(.*\.(md|json|txt|zip|lock|log|bak|sql|php~))$ - [F,L,NC]
RewriteRule ^(ARCHITECTURE|README|CHANGELOG|INSTALL-CODE|VERSION)(.*)$ - [F,L,NC]
RewriteRule ^public/(index|install|api)\.php$ - [L]
RewriteRule ^$ public/index.php [L]
RewriteRule ^index\.php$ public/index.php [L]
RewriteRule ^install\.php$ public/install.php [L]
RewriteRule ^api\.php$ public/api.php [QSA,L]
RewriteRule ^v1/(.*)$ public/api.php?route=/v1/$1 [QSA,L]
RewriteRule ^ - [F,L]
