Updated redirect.sh (infinite loop)