Tweak in-document url rewriting.