<IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /

    # Make Authentication work on php-fcgi, even if 'Authorization' header is not supported
    RewriteCond %{HTTP:Authorization} ^(.*)
    RewriteRule .* - [e=HTTP_AUTHORIZATION:%1]

    # Redirect all requests to index.php
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^ index.php [QSA,L]
</IfModule>
