• Resolved StudioTakken

    (@studioakken)


    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_rule

    But 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

Viewing 1 replies (of 1 total)
  • Plugin Support devnihil

    (@devnihil)

    Unfortunately we can’t offer support on custom code. Since we don’t want to take the risk that we break your website by suggesting incorrect or incomplete code, we cannot advise you on how to make such changes. Maybe someone watching these forums can assist you further, but if your topic is inactive for 7 days, we’ll mark it as resolved to keep the overview.

    Thank you for your understanding.

Viewing 1 replies (of 1 total)
  • The topic ‘Basic Auth rewrite rule for HTTP_AUTHORIZATION not working with yoast’ is closed to new replies.