making redirect go to index