Is it possible to do domain-specific routes in cakephp?
for example, let's say I have 2 domains: manufacturer.com
and productname.com
productname.com
is parked on manufacturer.com
.
I'd like to create a route like this:
Router::connect('http://www.productname.com/', array('controller' => 'products', 'action' => 'view', 'productSlug'));
so basically the index for manufacturer.com is the default pages/index
but for productname.com
it should be products/view/productSlug
Is this possible with Cake?