Using third party software with LemonStand
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: Troubleshooting during the development and learning process
Previous: API (function, action and class reference)
Return to Developer's Guide
Comments
No comments posted so far.
Add your comment
Loading form...