Hi,

I need some help, so if you know what i'm doing wrong, please don't hesitate
:-)

I have a website with a few path regexp routes.
Lets say:
www.example1.com/cat-foo-bar.html - default module, cat controller
www.example1.com/ad-foo-bar.html  - default module, ad controller
www.example1.com/img-foo-bar.html  - default module, img controller

Now I would like to add a new  website to it, pointing to a new module, but
leaving same regexp routes for controller/action routing.

What I would like to have is:
www.example2.com/cat-foo-bar.html - xyz module, cat controller
www.example2.com/ad-foo-bar.html  - xyz module, ad controller
www.example2.com/img-foo-bar.html  - xyz module, img controller

Is it possible to do with chain routing? Or should I use for it a
different approach?

The problem is then I do such like this:
$hostRoute->chain($pathRoute); -- only one hostname can be routed.

And if I try to route the path first, and only then the hostname, its not
working:
$pathRoute->chain($hostRoute); -- $hostRoute is not triggered.


Would be thankful for any help ;-)

--
Regards,
Vladas Diržys

Reply via email to