Title: Siteground WordPress REST API Error
Last modified: December 4, 2020

---

# Siteground WordPress REST API Error

 *  Resolved [dailyvideo](https://wordpress.org/support/users/dailyvideo/)
 * (@dailyvideo)
 * [5 years, 5 months ago](https://wordpress.org/support/topic/siteground-wordpress-rest-api-error/)
 * We use Siteground. Their optimizer plugin gives this error:
 * Could not connect to the WordPress REST API
 * Either a security plugin, custom function or rules in your .htaccess file is 
   preventing the WordPress REST API from working properly. SG Optimizer is using
   it to store its options and other functionalities so please make sure it works
   properly.

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

 *  Thread Starter [dailyvideo](https://wordpress.org/support/users/dailyvideo/)
 * (@dailyvideo)
 * [5 years, 5 months ago](https://wordpress.org/support/topic/siteground-wordpress-rest-api-error/#post-13746131)
 * UPDATE: If someone else is running into this here is a clue of what might help.
 * In our situation we run a few sites on the same hosting. We use AIOWPS on this
   site, but on the main site we use Wordfence. It appears Wordfence might actually
   be the culprit. In terms of testing, if we put Wordfence on the main site in 
   Learning Mode, come back to this site and use SGOptimizer features they seem 
   to be enabled now.
 * Not sure what will happen once Learning Mode is disabled on the other site.
 * Hope it sticks and hope this saves someone else hours of frustration.
 * If you have any insights please add.
 * PS: You might ask, why do you use two different security plugins. In short, because
   Wordfence can be a nightmare to setup on SiteGround. We have followed there directions
   but always need a support rep to make changes on their site to make Wordfence
   work with their hosting. So on later sites we went back to using AIOWPS security
   which seems to setup seamlessly.
 *  Plugin Contributor [mbrsolution](https://wordpress.org/support/users/mbrsolution/)
 * (@mbrsolution)
 * [5 years, 5 months ago](https://wordpress.org/support/topic/siteground-wordpress-rest-api-error/#post-13747524)
 * Thank you for sharing your solution. I am sure this will help others running 
   into a similar situation as you.
 * If your issue is resolved, can you mark this support thread as resolved.
 * Kind regards

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

The topic ‘Siteground WordPress REST API Error’ is closed to new replies.

 * ![](https://ps.w.org/all-in-one-wp-security-and-firewall/assets/icon-256x256.
   png?rev=2798307)
 * [All-In-One Security (AIOS) – Security and Firewall](https://wordpress.org/plugins/all-in-one-wp-security-and-firewall/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/all-in-one-wp-security-and-firewall/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/all-in-one-wp-security-and-firewall/)
 * [Active Topics](https://wordpress.org/support/plugin/all-in-one-wp-security-and-firewall/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/all-in-one-wp-security-and-firewall/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/all-in-one-wp-security-and-firewall/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [mbrsolution](https://wordpress.org/support/users/mbrsolution/)
 * Last activity: [5 years, 5 months ago](https://wordpress.org/support/topic/siteground-wordpress-rest-api-error/#post-13747524)
 * Status: resolved