adding index with redirect