Setting Dynamic Path From Code

Hello All

I have one requirement. I want to keep my login page in RT on HTTPS while
want rest of site on HTTP. So is there is any way I can set this kind of
setting in my RT code where login occurs after checking credentials. If yes
then exactly where should I put this code and which file I need to change so
that my functionality and pages doesn’t gets broken and I can switch between
https and http smoothly.

Any help is highly appreciable

Thanks & Regards

Varun Vyas