Options -Indexes
DirectoryIndex index.php
RewriteEngine On
RewriteRule ^extension-template(?:/|$) - [F,L]
RewriteCond %{HTTPS} !=on
RewriteCond %{HTTP_HOST} !^(localhost|127\.0\.0\.1)
RewriteRule ^ - [F,L]
# Some cPanel Apache/PHP configurations do not pass Authorization through
# to PHP unless it is explicitly copied into the CGI environment.
RewriteRule ^ - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
RewriteRule ^api/?$ api.php [L,QSA]