# Route every request that is not a real file through the front controller.
RewriteEngine On

# Pass the Authorization header through to PHP (CGI/FastCGI strips it).
RewriteCond %{HTTP:Authorization} ^(.*)$
RewriteRule .* - [E=HTTP_AUTHORIZATION:%1]

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