We are moving our forum in GitHub Discussions. For questions about Phalcon v3/v4 you can visit here and for Phalcon v5 here.

[Solved] Micro Api Not Working?

Please help Im a newbie in micro applications and not find errror in my script.

Look at this code:

use Phalcon\DI\FactoryDefault,
    Phalcon\Mvc\Micro\Collection as MicroCollection,
    Phalcon\Events\Manager as EventsManager;

$di = new FactoryDefault();
$config = include __DIR__ . '/../config/config.php';

ini_set('display_errors', TRUE);

include __DIR__ . '/../controllers/GeoPointsController.php';

$app = new Micro();


$apiHandler = new MicroCollection();
$apiHandler->setHandler('GeoPointsController', TRUE);
$apiHandler->get('/', 'index');


$app->notFound(function () use ($app) {
    $app->response->setStatusCode(404, "Not Found")->sendHeaders();
    echo 'This is crazy, but this page was not found!';


when I /geo and /geo it shows

This is crazy, but this page was not found!

My Error in htaccess rewrite


what it was?