ZF2-288: Support optional subdomain pieces in Hostname route


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:

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


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