Redirecting to the correct index.