# BEGIN SMARTCBT ROUTING
Options -Indexes -MultiViews
DirectoryIndex index.php
<FilesMatch "^(?:setup-access\.php|.*\.(?:sql|zip|log|bak|env|tmp))$">
Require all denied
</FilesMatch>
<IfModule mod_rewrite.c>
RewriteEngine On
# Redirect only browser reads. Never redirect POST bodies or internal rewrites.
RewriteCond %{REQUEST_METHOD} ^(?:GET|HEAD)$
RewriteCond %{THE_REQUEST} \s/+((?:[^?\s]*/)?)index\.php(?:[/?\s]) [NC]
RewriteRule ^index\.php(?:/+(.*))?$ /%1$1 [R=302,L]
RewriteCond %{REQUEST_METHOD} ^(?:GET|HEAD)$
RewriteCond %{THE_REQUEST} \s/+((?:[^?\s]*/)?)setup\.php(?:[?\s]) [NC]
RewriteRule ^setup\.php$ /%1setup [R=302,L]
RewriteRule ^setup/?$ setup.php [L,QSA]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [L,QSA]
</IfModule>
# END SMARTCBT ROUTING
