I have a problem. I am using slim and I have route for my main page:
$app->get(\'/\', function() use ($app) { ...
In one of my controll
Slim 3
$app->get('/', function ($req, $res, $args) { $url = 'https://example.org'; return $res->withRedirect($url); });
Reference: https://www.slimframework.com/docs/v3/objects/response.html#returning-a-redirect