Limonade Page not found: (GET) /

66 views
Skip to first unread message

Dwaine Hinds

unread,
Mar 30, 2016, 1:22:33 AM3/30/16
to Limonade
Hi. I have Limonade installed in a subfolder on my domain. Like: http://example/subfolder/.  


The app is in a file called voice2.php:

<?php
require('./limonade/lib/limonade.php');

dispatch_post('/', 'app_start');
function app_start() {
...
}

dispatch_post('/', 'app_continue');
function app_continue() {
...
}

?>

I keep getting "Page Not Found". How can I fix?

Christopher Lange

unread,
Mar 30, 2016, 8:05:10 AM3/30/16
to Limonade
Hi Dwaine,

For a Get route, one of your routes needs to read:

dispatch('/', 'app_start');
function app_start() {
...
}

Both of the paths in your example are post routes which is why you are getting the message that no get route is available.

You'll also want to make sure your subfolder path is set in your .htaccess file as well to help with routing.  Just add

  # if your app is in a subfolder
  RewriteBase /subfolder

Inside of your mod_rewrite module. 

-Chris
Reply all
Reply to author
Forward
0 new messages