A very weird question.
I can not setup a route in slim to use the URL /loveshared
$app->get('/loveshared', function() use ($app) {
echo "hello";
});
If I navigate in my browser to localhost/loveshared, I get a 404. I also get this 404 message when I push to my server.
I did a Find in Files… in the top direction of my project for the string loveshared. The only place it found the string was in my router file.
I also went through and did:
/l, /lo, /lov, /love, /loves…/loveshared All the routes work, up until loveshared. I also did /sharedlove and /stuffshared and they both worked.
Can anyone else confirm that /loveshared does not work with slim as a route?
Ok, I downloaded a fresh copy of Slim 2.2.0, placed it as-is on my personal site (
PHP 5.3.13) running onLinux duhr 2.6.32.8in shared host environment (Dreamhost). Then I created a file,t.php, and pasted the following into it:http://jfcoder.com/slim/t.php/loveshared
And it runs as expected. There’s either some kind of environment cause (rogue or misconfigured
.htaccessfile?), or something. You would need to recreate it in some way to be able to triangulate and find the problem.Have you tried what I have done and see if it still causes the problem you’re describing?