Handle 301 redirection and qualify relative URLs accordingly