RewriteEngine On

# Pasar el header Authorization a PHP (necesario en hosting compartido)
RewriteCond %{HTTP:Authorization} ^(.*)
RewriteRule .* - [e=HTTP_AUTHORIZATION:%1]

# Alternativa para algunos hostings
SetEnvIf Authorization "(.*)" HTTP_AUTHORIZATION=$1
