Open Irikos opened 7 years ago
is the index file in in the root of the project?
yes
I was having the same issue but it was because i was testing it in on a subfolder called api, so for every url string i just added /api on the start it worked like a charm.
maybe its your .htaccess config?
this is my .htaccess file:
Options +FollowSymLinks
RewriteEngine On
RewriteRule ^(.*)$ index.php [NC,L]
Hello,
I can't seem to make routing work. Here's the htaccess file, which does redirect every request to index.php. However, in index.php, it doesn't respond to GET request.
.htaccess:
index.php:
If I change it to
It will work, and show this on every link (that doesn't already exist).
I also found this link on stackoverflow with the same problem (from a few years ago), but with no solution specified: http://stackoverflow.com/questions/20269954/klein-routes-dont-return-anything
Any ideas?