add an index with redirect