How should I programatically forward http to https for sensitive pages like register and login. Should this be even done programmatically or with something like mod_rewrite with apache in the front?