update links according to 301s