Siddharth Siddharth - 2 months ago 10
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.


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