use request domain for link-rewriting