Make stuff https/http independant