rewirte index