I have the following route
$di->set('router', function() {
$router = new Router();
//$router->removeExtraSlashes(true);
//Application Routes
$router->add(
'/online/{slug}',
array(
'controller' => 'application',
'action' => 'app',
'slug' => 1,
));
return $router;
This route displays:
my-domain.com/online/slug-name
What i want is invert the order of URL, and make the URL display:
slug-name.online.my-domain.com
How i can do this?