L
L
lexstile2021-04-01 22:50:53
htaccess
lexstile, 2021-04-01 22:50:53

How to set header replacement via htaccess?

There is a rule:

RewriteRule .* - [e=HTTP_AUTHORIZATION:%{HTTP:Authorization}]

Can it be rewritten so that part of the line in the Authorization header can be cut out? (You need to cut out "Bearer" - leave everything except the word Bearer and the space following it)
Header (HTTP_AUTHORIZATION):
6065aebd85733869621790.png

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question