# Enable PATH_INFO for shared hosting (fallback)
<IfModule mod_rewrite.c>
    RewriteEngine On
    
    # Pass Authorization header to PHP (required for shared hosting)
    RewriteCond %{HTTP:Authorization} .+
    RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
    
    # Allow direct access to PHP files with query string
    RewriteCond %{REQUEST_FILENAME} -f
    RewriteRule ^ - [L]
</IfModule>

# Accept PATH_INFO
AcceptPathInfo On

# CGI fix for Authorization header
SetEnvIf Authorization "(.*)" HTTP_AUTHORIZATION=$1
