updated redirect rule