fixing the https redirect for apache