rewrite domain for display pages