Add detection for PHP running in CGI mode and add HTTP_AUTHORIZATION rewrite rule