My application is not working with Slim Framework and apache.
Route Slim, is not working
$app->group("/teste", function() {
$this->get("/", function(Request $request, Response $response, $args = []) {
return $response->write("deu");
});
$this->get("/:nome", function(Request $request, Response $response, $args = []) {
return $response->write("deu ".$args['nome']);
});
});
.htaccess in use and index.php(Slim) in same location: public_html/slim/biblioteca/
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^ index.php [QSA,L]
Return error 500 when try access route /teste/
Maybe need config or create httpd.conf and enable .htaccess? also AllowOverride All.
not found this file in /etc/
Can help me?
Printscreen project list files