Keywords: WordPress - Amazon Web Services - Technical issue - Other
I just got Amazon Lightsail and installed Bitnami's Wordpress package on it. Right now I'm trying to get access to the wordpress site through the Json REST API so that I can quickly create hundreds of pages/posts programatically, but it seems there's a problem with JTW Authentication.
I am mostly a C# programmer, so I'm trying to use the C# github project to help me make calls to the REST API so I don't have to program everything from scratch. Project is located here:
This project requires me to install "JWT Authentication for WP REST API" for Authentication as a plugin to my Wordpress site, located here: https://wordpress.org/plugins/jwt-authentication-for-wp-rest-api/
This JWT plugin requires me to add some "define"s to the wp-config.php file, which I did, and this got the API to successfully log-in to my wordpress account, but when I make another call to the API it appears as though the Authorization Header isn't getting through, so I assume I have to make the fix they suggested on the https://wordpress.org/plugins/jwt-authentication-for-wp-rest-api/ page that says "Most of the shared hosting has disabled the HTTP Authorization Header by default. To enable this option you’ll need to edit your .htaccess file adding the follow".
But, when I go to try to make this change, it appears Bitnami has a whole different way of dealing with the .htaccess files with wordpress that I don't understand.
How can I make this change to the .htaccess.conf file that Bitnami uses so that it has the same effect as if I made the change to a regular .htaccess file? Can someone try to get this up and running and walk me through what needs done to make Wordpress API access with C# (and Json) work?