rewrite of domains and routes page