title: CakePHP Application: some pages with SSL, some without
body: <p>I have an application written with the CakePHP framework and it is currently located in httpdocs. I want a few pages to be redirected to https://</p>
  
  <p>Basically this shouldn't be a problem to detect whether the user is already on https://... or not. My issue is a different one: In my opinion I would need to make a copy of the whole project and store it in httpsdocs, right? This sounds so silly but how should it work without duplicating the code? I think I miss something but I don't get it ...</p>