I produced subdomain for my application.

host_world wide web.type = "Zend_Controller_Router_Route_Hostname"

host_world wide web.route = "world wide web.mywebsite.com"

host_world wide web.defaults.module = "default"

host_world wide web.defaults.controller = "index"

host_world wide web.defaults.action = "index"

store_infos.route = "storeinfos/:store"

store_infos.defaults.controller = "store"

store_infos.defaults.action = "store-infos"

store_infos.defaults.module = "default"

store_infos.chain = "host_world wide web"

host_items.type = "Zend_Controller_Router_Route_Hostname"

host_items.route = "items.mywebsite.com"

host_items.defaults.module = "items"

host_items.defaults.controller = "items"

host_items.defaults.action = "index"

product_infos.type = "Zend_Controller_Router_Route_Regex"

product_infos.route = "([-w]+).htm"

product_infos.reverse = "%s.htm"

product_infos.map.1 = "q"

product_infos.defaults.module = "items"

product_infos.defaults.controller = "items"

product_infos.defaults.action = "see-product"

product_infos.chain = "host_items"

I'm not sure when the syntax within this zend config ini file is correct, particularly for routes chaining.

Once I am about this subdomain, web addresses built with $this->url() such as this :

<a href="<?= $this->url(array('store' => 1234), 'store_infos', true) ?>">

See store informations

</a>

still indicate the subdomain items.mywebsite.com, where I would like it to indicate world wide web.mywebsite.com

For now, I actually do this :

<a href="http://world wide web.mywebsite.com<?= $this->url(array('store' => 1234), 'store_infos', true) ?>">

See store informations

</a>

But it is not flexible whatsoever.

It is possible to solution, a parameter to include, or my config file is wrong ?

thanks ahead of time for the help.