Skip to main content
Installing the LoyaltyLion Extension on Magento
Success team avatar
Written by Success team
Updated over a year ago


Visit our developers docs for installation instructions for Magento1:

-------------------------------

Common questions

Visiting /api/rest on my store results in a 404 error page - why?

LoyaltyLion requires API access to your Magento store in order to function correctly.

If we can't access your API, the most likely explanation is a misconfigured .htaccess directing API requests to the wrong part of Magento internals.

A correct .htaccess has a rewrite rule near the beginning which looks like this:

RewriteEngine On 
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteRule ^api/rest api.php?type=rest [QSA,L]

My Magento development store is password protected, can I still set up LoyaltyLion?

LoyaltyLion requires access to your REST API.

It's quite common to control access to your store with HTTP Basic Auth during development. If you have done this, you'll need to remove this extra authentication on your API routes.

Example .htaccess configuration:

# set an environment variable "noauth" if the request starts with "/api/rest"
SetEnvIf Request_URI ^/api/rest noauth=1# the auth block
AuthName "Please login."
AuthGroupFile /dev/null
AuthType Basic
AuthUserFile /xxx/.htpasswd# Here is where we allow/deny
Order Deny,Allow
Satisfy any
Deny from all
Require valid-user
Allow from env=noauth

Did this answer your question?