Basic Auth rewrite rule for HTTP_AUTHORIZATION not working with yoast
-
Hi,
We are using a custom Api with Basic Auth.
Because the Basic Auth is not being passed through with PHP in CGI mode (see https://github.com/WP-API/Basic-Auth/pull/32/files) we added a rule in htaccess file:# BEGIN authentication_rule
# see https://github.com/WP-API/Basic-Auth/pull/32/files
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ – [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [E=HTTP_AUTHORIZATION:%{HTTP:Authorization},L]
</IfModule>
# END authentication_ruleBut after activating the yoast plugin this rule HTTP_AUTHORIZATION is not working anymore. The htaccess file is not being touched by yoast, and I can’t find the solution for this problem…
I hope someone can help, thanks in advance!
Regards, Martin
- The topic ‘Basic Auth rewrite rule for HTTP_AUTHORIZATION not working with yoast’ is closed to new replies.