I want to be sure that for some URL of my website, SSL will be use. I saw a lot of answer already on SO.
Force redirect to SSL for all pages apart from one
S
We used some simple middleware to check urls against a list of base urls that must be in HTTPS mode, all others are forced to HTTP mode. The big caveat here is that any POST data can be lost unless you take extra care (it didn't matter in our case). We were doing this on join pages that required credit card numbers and the like so as soon as they were in that pipeline we forced them into HTTPS.