ZF2-288: Support optional subdomain pieces in Hostname route

Issue Type: Improvement Created: 2012-05-05T00:27:26.000+0000 Last Updated: 2012-10-08T20:15:18.000+0000 Status: Closed Fix version(s): Reporter: Nicholas Calugar (njcalugar) Assignee: Ben Scholzen (dasprid) Tags: - Zend\Mvc\Router

  • Routing

Related issues: Attachments:


We often develop on domains like, where is our production URL. It would be nice to match that where the local part is optional (route: :environment.<>).

Another use case is our staging environment. We use Akamai to make wildcard subdomains all go to staging environment. So we will have urls like or It would be nice to optionally match against a route like :branch.:environment.<>


Posted by Ralph Schindler (ralph) on 2012-10-08T20:15:18.000+0000

This issue has been closed on Jira and moved to GitHub for issue tracking. To continue following the resolution of this issues, please visit:

Have you found an issue?

See the Overview section for more details.


© 2006-2018 by Zend, a Rogue Wave Company. Made with by awesome contributors.

This website is built using zend-expressive and it runs on PHP 7.