Added regex to replace http w/ https