All Collections
Integration Guides
Create API route for Magento v 1.9x
Create API route for Magento v 1.9x

Fixing 404 status error for Magento.

Fomo avatar
Written by Fomo
Updated over a week ago

Occasionally, customers will get an HTTP 404 status error after Fomo sends a request to their API. This is because the API/REST endpoint does not exist. 

This guide shows how to create the route for the API. 

Step 1 - Connect to your store via FTP

Step 2 - Download the .htaccess file in the public or public_html folder

Step 3 - Add a rewrite rule in the .htaccess file

Copy and paste the following into the .htaccess file:  
RewriteRule ^api/rest api.php?type=rest [QSA,L]

Then, upload the changed file back to Magento. 

That's all! Now your REST/API will be available for Fomo to request data from.

Did this answer your question?