RewriteEngine On

# Forces authorization header to appear in $_SERVER since PHP-FPM supports only basic auth.
# SlimFramework does not expects this.
RewriteCond %{HTTP:Authorization} ^(.*)
RewriteRule .* - [e=HTTP_AUTHORIZATION:%1]

RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^ index.php [QSA,L] 