If you are building CakePHP application and want to move all traffic to HTTPS you can follow bellow simple steps without making any change in .htaccess  file

Step 1. Edit AppController to make change

Step 2. Load security component

Step 3. Create function which redirects all non https request to https

Hope this will help you 🙂