URL rebase function (will be used in library scan fns)