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