rewrite link