Rewrite internal links.