Title: api probleme
Last modified: January 7, 2021

---

# api probleme

 *  Resolved [woow](https://wordpress.org/support/users/woowmotors/)
 * (@woowmotors)
 * [5 years, 2 months ago](https://wordpress.org/support/topic/api-probleme/)
 * Hello, I’m using WordPress as a back-end with react as a front-end. The WordPress
   URL looks like this: api.mywebsite.com and the site URL as: mywebsite.com
 * The plugin is trying to use mywebsite.com/wp-json/media-cleaner/v1/all_settings/
   instead of api.mywebsite.com/wp-json/media-cleaner/v1/all_settings/
 * any option?
 * Many thanks
    -  This topic was modified 5 years, 2 months ago by [woow](https://wordpress.org/support/users/woowmotors/).

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Author [Jordy Meow](https://wordpress.org/support/users/tigroumeow/)
 * (@tigroumeow)
 * [5 years, 2 months ago](https://wordpress.org/support/topic/api-probleme/#post-13879460)
 * Hi,
 * The front-end being in React is not a problem, Gutenberg is also in React, as
   well as the front-end of my plugins 🙂
 * Mmm, it’s tricky. You can try to play with the WPMC_URL defined in the media-
   cleaner.php file, maybe?
 *  Thread Starter [woow](https://wordpress.org/support/users/woowmotors/)
 * (@woowmotors)
 * [5 years, 2 months ago](https://wordpress.org/support/topic/api-probleme/#post-13880432)
 * Alright! You got me to the right place. This didn’t fix the issue. But after 
   digging in the code, I found out that in my wp-config.php I inverted WP_HOME 
   and WP_SITEURL. Because of a bug with the newsletter plugin..
 * So that makes sense that it’s wrong and I should be looking at fixing that plugin
   instead of messing with a global.
 * Otherwise I manually change the API_URL in admin.php and it works too!
 * Thank you
 *  Plugin Author [Jordy Meow](https://wordpress.org/support/users/tigroumeow/)
 * (@tigroumeow)
 * [5 years, 2 months ago](https://wordpress.org/support/topic/api-probleme/#post-13880440)
 * Haha, yes, indeed! Hopefully they will fix it too.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘api probleme’ is closed to new replies.

 * ![](https://ps.w.org/media-cleaner/assets/icon-256x256.png?rev=2791576)
 * [Media Cleaner: Clean your WordPress!](https://wordpress.org/plugins/media-cleaner/)
 * [Support Threads](https://wordpress.org/support/plugin/media-cleaner/)
 * [Active Topics](https://wordpress.org/support/plugin/media-cleaner/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/media-cleaner/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/media-cleaner/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [Jordy Meow](https://wordpress.org/support/users/tigroumeow/)
 * Last activity: [5 years, 2 months ago](https://wordpress.org/support/topic/api-probleme/#post-13880440)
 * Status: resolved