making the links support http or https