Ugly hack for SSL redirect