Added url rewriting for pages