Add redirection to https

fix #615

By this patch all http requests are redirected to https pages.