fix redirect document root issue in redirect.class