HTTPS redirection on same entrypoint?

Thanks @cakiwi, I created a new topc to expain my situation.

It can be related to this question