adds code for redirecting http requests to https