Added url rewriting for spaces/users