# How can I disable basic auth for Wordpress?

**URL:** <https://forum.yunohost.org/t/how-can-i-disable-basic-auth-for-wordpress/26970>\
**Category:** Support\
**Tags:** english\
**Created:** [October 31, 2023, 3:05pm UTC](https://forum.yunohost.org/t/how-can-i-disable-basic-auth-for-wordpress/26970 "2023-10-31T15:05:57Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ugurcan](https://forum.yunohost.org/user_avatar/forum.yunohost.org/ugurcan/32/8776_2.png) [@Ugurcan](https://forum.yunohost.org/u/Ugurcan)\
**Post date:** [October 31, 2023, 3:05pm UTC](https://forum.yunohost.org/t/how-can-i-disable-basic-auth-for-wordpress/26970/1 "2023-10-31T15:05:58Z")

</div>

### My YunoHost server

**Hardware:** VPS  
**YunoHost version:** 11.2.5 Stable  
**I have access to my server :** Through SSH  
**Are you in a special context or did you perform some particular tweaking on your YunoHost instance ?** : no

### Description of my issue

I’m trying to access Wordpress API from outside, but since WP recently switched to Application Passwords, and Application Passwords seem to not playing well with the Basic Authentication, I’m stuck.

This is the error message on Wordpress/Users/Profile:

> `Your website appears to use Basic Authentication, which is not currently compatible with Application Passwords.`

Any leads from here? Should I try to remove Basic Auth? If so, how?

---

<div class="post-metadata">

**Author:** ![Ugurcan](https://forum.yunohost.org/user_avatar/forum.yunohost.org/ugurcan/32/8776_2.png) [@Ugurcan](https://forum.yunohost.org/u/Ugurcan)\
**Post date:** [November 1, 2023, 1:36pm UTC](https://forum.yunohost.org/t/how-can-i-disable-basic-auth-for-wordpress/26970/2 "2023-11-01T13:36:26Z")

</div>

I’m wondering if it’s even possible to disable Basic Auth anywhere.

---

<div class="post-metadata">

**Author:** ![Ugurcan](https://forum.yunohost.org/user_avatar/forum.yunohost.org/ugurcan/32/8776_2.png) [@Ugurcan](https://forum.yunohost.org/u/Ugurcan)\
**Post date:** [November 14, 2023, 12:41pm UTC](https://forum.yunohost.org/t/how-can-i-disable-basic-auth-for-wordpress/26970/3 "2023-11-14T12:41:07Z")

</div>

I’ve finally found the correct way to do this and I’m sharing my findings for future Yunohosters who may encounter the same issue.

The reason I couldn’t access the API was that it simply wasn’t there. Try going to [https://yourdomain.tld/wp-json/](https://yourdomain.tld/wp-json/). If you encounter a “Not Found” page, your WordPress Permalink settings need to be adjusted.

By default (in both Docker and YH app), Permalink pages are set to “Plain” mode. If you check [https://yourdomain.tld/?rest\_route=/wp/v2](https://yourdomain.tld/?rest_route=/wp/v2), you’ll see that you can indeed access the API.

To resolve this, go into your WP Dashboard \> Settings \> Permalinks. Change your Permalink structure to anything other than “Plain”. Once you save these changes, you’ll see that you can now access your REST API over [https://yourdomain.tld/wp-json/](https://yourdomain.tld/wp-json/).

Following these steps will save you from hassling with Application Passwords.

Cheers!

---

<div class="post-metadata">

**Author:** ![system](https://forum.yunohost.org/uploads/default/original/2X/f/f59fe8e3ee6b100b4f574d30d6e30479c68b89f0.png) [@system](https://forum.yunohost.org/u/system)\
**Post date:** [December 14, 2023, 1:14pm UTC](https://forum.yunohost.org/t/how-can-i-disable-basic-auth-for-wordpress/26970/4 "2023-12-14T13:14:30Z")

</div>

Closed on December 14, 2023, 1:14pm UTC

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
