Wamp throws a 404 error anywhere but at the root

Right.

So I have Wamp installed and running. The icon is green, http://localhost/

running. In wamp I have a skimmed wireframe on localhost/fatfree-master

which I am currently trying. In f3, I have two routes, root, which echoes the hello world, and / test, which does this:

$f3->route('GET /test', function($f3) { 
    $f3->set('content', 'test.htm');
    echo View::instance()->render('layout.htm');
} );

      

The problem is when I go to localhost / fatfree-master / test I get 404. But if I comment out the first route and change the test to root it works. I was told it was apache bug, but I don't know how to fix it.

Sorry if I explained this poorly, did the best I could.

+3


source to share


2 answers


Do you have a file .htaccess

in your full bold font folder? If so, there is a small bug in the major version for some apache configurations. Try using the file .htaccess

from dev-branch at https://github.com/bcosca/fatfree/blob/dev/.htaccess and see if that fixes the problem.



0


source


Okay, kidding me lest you check the obvious first. I forgot to clear my browser cache. Ctrl + F5 and it worked. Stupid me.



0


source







All Articles