WP-API / Basic-Auth

Basic Authentication handler for the JSON API, used for development and debugging purposes
761 stars 281 forks source link

AlmaLinux v8.9.0 STANDARD issue #78

Open qkgm828 opened 6 months ago

qkgm828 commented 6 months ago

I am using AlmaLinux v8.9.0 STANDARD and CentOS v7.9.2009 STANDARD VPS.

The JSON Basic Authentication plugin works well on CentOS v7.9.2009 STANDARD, but it does not work on AlmaLinux v8.9.0 STANDARD.

I got an error message like below.

{"code":"rest_no_route","message":"No route was found matching the URL and request method.","data":{"status":404}}

Please provide a solution.

For your reference, I am using the .htaccess file identically as below.

RewriteEngine On RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}] RewriteBase / RewriteRule ^index\.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L]

Thanks.