HTTP:Authorization 環境変数をスクリプトに追加しながら、index.php ファイルを使用するように存在しない URL を書き換えようとしています。これまでのところ、一度にどちらかを機能させることしかできませんでした。両方ではありません。.htaccess のどこにエラーがあるか教えてもらえますか?
RewriteEngine on
# Get HTTP authorization
RewriteCond %{HTTP:Authorization} ^Basic.*
# Append to URL
RewriteRule (.*) index.php?_auth=%{HTTP:Authorization} [QSA,L]
# If a directory or a file exists, use it directly
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
# Otherwise forward it to index.php
RewriteRule (.*) index.php?_auth=%{HTTP:Authorization} [QSA,L]