rewrite for xmap url