hi.
im install slim 4 from composer (skelleton and manual) and every time get this error
Uncaught Slim\Exception\HttpNotFoundException: Not found. in /var/www/html/s5/vendor/slim/slim/Slim/Middleware/RoutingMiddleware.php:93\nStack trace:\n#0 /var/www/html/s5/vendor/slim/slim/Slim/Routing/RouteRunner.php(72): Slim\Middleware\RoutingMiddleware->performRouting(Object(Slim\Psr7\Request))\n#1 /var/www/html/s5/vendor/slim/slim/Slim/MiddlewareDispatcher.php(81): Slim\Routing\RouteRunner->handle(Object(Slim\Psr7\Request))\n#2 /var/www/html/s5/vendor/slim/slim/Slim/App.php(211): Slim\MiddlewareDispatcher->handle(Object(Slim\Psr7\Request))\n#3 /var/www/html/s5/vendor/slim/slim/Slim/App.php(195): Slim\App->handle(Object(Slim\Psr7\Request))\n#4 /var/www/html/s5/public/index.php(16): Slim\App->run()\n#5 {main}\n thrown in /var/www/html/s5/vendor/slim/slim/Slim/Middleware/RoutingMiddleware.php on line 93
“s5” is my project
.htaccess:
RewriteEngine on
RewriteRule ^$ public/ [L]
RewriteRule (.*) public/$1 [L]
index.php:
<?php use Psr\Http\Message\ResponseInterface as Response; use Psr\Http\Message\ServerRequestInterface as Request; use Slim\Factory\AppFactory; require __DIR__ . '/../vendor/autoload.php'; $app = AppFactory::create(); $app->run(); if i put a function get the message is the same sorry for my english please "asap" Linux 4.15.0-74-generic #84-Ubuntu x86_64 x86_64 x86_64 GNU/Linux PHP 7.2.24-0ubuntu0.18.04.2