I created a Hostname route like this:
$siteRoute = new Zend_Controller_Router_Route_Hostname(
':siteSlug.wordy',
array(
'siteSlug' => 'main-site',
'module' => 'default'
)
);
and i chain it with default and other rotues like this:
foreach ($router->getRoutes() as $key => $route) {
$router->addRoute($key, $siteRoute->chain($route));
}
The problems are:
When i got to main-site.wordy
there is no problem. but if i go to just wordy
i get this error message: No route matched the request
And the other problem is when i go to wordy/admin
i get this exception: Invalid controller specified (admin)
How can i solve this?