get redirect working in index