Need help? Call us on 1300 789 260

Plesk Onyx: Allow header based authentication for WooCommerce

Difficulty: Advanced

Prerequisites

Plesk login details or FTP access

Overview

The WooCommerce REST API allows external systems to connect into your WooCommerce store from external software. This can be used to syncronise products, conduct inventory control, Point of Sale (POS) integration and store testing (such as Robot Ninja ). As Plesk uses an NGINX proxy in front of the Apache web server by default, the authentication header may not be passed through correctly and could cause issues with third party services.

Instructions

  1. Edit your .htaccess for your WordPress / WooCommerce site and replace the index.php rewrite with the following:
    RewriteRule ^index\.php$ - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization},L]
    
  2. Save the .htaccess and retry your external authentication.

Note: By default, the rewrite line should look like this:

RewriteRule ^index\.php$ - [L]
Was this article helpful? Yes No
👥

Having trouble? We’re here to help!

We’ve built our company with a serious focus on quality service. Feel free to give us a call!

1300 789 260