Configure server routes rewrite for Magento REST API

  1. Open virtual host nginx config file.
  2. Then, add this part to it:
  3. #REST API PART      location /api {              rewrite ^/api/rest /api.php?type=rest last;              rewrite ^/api/v2_soap /api.php?type=v2_soap last;              rewrite ^/api/soap /api.php?type=soap last;      }
  4. Finally, restart nginx.! Please, check your integration data and make sure that route "api/rest" is publicly accessible.


If you got any questions or need any assistance feel free to contact our support through SyncSpider !

Updated on: 22/09/2026

Was this article helpful?

Share your feedback

Cancel

Thank you!