Cake Enviroment

Is it possible to use different to domain in one core.
My situation is like this.


  1. servername: local.videorental
  2. servername: local.otherrental


is this possible to set up this kind of environment. without making another project?

I’d look at using prefix routing/controllers to so you group your logic sensibly - then having some rewrite rules that map each domain to a prefix in your application

local.videorental >> mydomain/video
local.otherrental >> mydomain/other