rewrite hrefs