changing paths from http to https