I would like to keep my port number, which is different from the development and development environment, but the URL helper calls based on my zend routes forgot the port number.
My routes are a bunch of regex routes, a chain with default routes by default, mainly for a multilingual interface with a multi-domain configuration (a brief overview below).
<?php
$routecateg = new Zend_Controller_Router_Route_Regex('cat/(\w+)_([^_]+)(?:_page_(\d+))?(?:_par_(\d+))?(?:.html)?',
array(1 =>'',2=>'',3=>'1',4=>'20','controller' =>'list','action'=>'categ'),
array(1 =>'categid',2=>'categname',3=>'page',4=>'par'),
'cat/%s_%s_page_%d_par_%d.html'
);
$routeindex= new Zend_Controller_Router_Route_Regex('(index|home)?',
array('controller' =>'index','action'=>'home'),
array(),
'index'
);
$hostRouteRepository = new Zend_Controller_Router_Route_Hostname(
':lang.'.$config->serverurl
);
$router ->addRoute('index',$hostRouteRepository->chain($routeindex));
$router ->addRoute('categ',$hostRouteRepository->chain($routecateg));
?>
Where $ config-> serverurl is just the domain name depending on the environment and is configured in my application.ini file.
On my working server, this is normal, since I work by default by default 80, but in developmenet I need to run on a different port, and every time I call the url helper, the port number is forgotten .
, , apache, , .