Siddharth Siddharth - 1 year ago 86
PHP Question

FatFree routing not working in production

I have an application with many routing paths as follows-

F3::route('GET /', 'Main->get_front_page');
F3::route('GET /login/check_for_login', 'Login->check_for_login');

The first route is matching properly. However, the second route is not matching and I am getting a 404. Infact, any route after the first one are not matching.

To make matters more complicated, all the routes are working on my local machine.

Answer Source

Check your apache .htaccess file. Especially the RewriteBase url. I often tend to forget this one :)

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download