I have a route, something like:
array(
'type' => 'Hostname',
'options' => array(
'route' => ':subdomain.:domain.:tld',
'defaults' => array(
'__NAMESPACE__' => 'Application\Controller',
'controller' => 'Index',
'action' => 'index',
),
)
What I would like to do is get the domain.tld as one single parameter, because I want to constrain the domain to a list, such as 'application1.com', 'example.org' etc.
I've tried
array(
'type' => 'Hostname',
'options' => array(
'route' => ':subdomain.:domain',
'defaults' => array(
'__NAMESPACE__' => 'Application\Controller',
'controller' => 'Index',
'action' => 'index',
),
Is it possible to handle the domain and tld as a single router param?