This is the documentation for LemonStand V1, which has been discontinued. You can learn more and upgrade your store here.

LemonStand Version 1 Has Been Discontinued

This documentation is for LemonStand Version 1. LemonStand is now offered as a cloud-based eCommerce platform.
You can try the new LemonStand and learn about upgrading here.

Third-Party Integrations

Sometimes it is needed to install some third party software, for example a forum, to the same domain with LemonStand. As LemonStand processes all HTTP requests (all URLs), it makes it impossible to access any PHP script or any other document in LemonStand directories.

To allow third-party applications to work inside the LemonStand directory, you need to modify the .htaccess file which is in the root of the LemonStand directory. To exclude some directories from the default LemonStand URL processing you can use the rewrite conditions, which will check whether a third-party directory is accessed. You need to add corresponding rewrite conditions before all RewriteRule statements in the .htaccess file. For example: 

# The following line has been added in order to exclude the my_forum 
# directory from the LemonStand URL processing.
RewriteCond %{REQUEST_URI} !^/my_forum 

# The following line was in the original .htaccess file
RewriteRule ^(.*).php$ index.php [L]

...
  
# The following line has been added in order to exclude the my_forum 
# directory from the LemonStand URL processing.
RewriteCond %{REQUEST_URI} !^/my_forum

# The following line was in the original .htaccess file
RewriteRule ^(.*)$ index.php?q=/$1 [L,QSA]

Next: Handling errors
Previous: Caching API
Return to LemonStand Back-End