Routing with slim doesn't work

Question:

I'm trying to use Slim FrameWork following the documentation for it, I configured mod_rewrite and installed mcryp;

If I call http://localhost/slim/books I get: Not Found

If I call http://localhost/frame/index.php?books works!

What could this be.

This is true for slim and flight , but not for Laravel .

Here my .htaccess:

RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ /index.php [QSA]

I'm using:

Apache/2.4.10 (Ubuntu 14.04)

PHP Version 5.5.15RC1

Does anyone know what it could be?

Answer:

Your htaccess rewrites the URL without passing any parameters. Try this:

RewriteRule ^(.*)$ /index.php?$1 [QSA]
Scroll to Top