Completely fixed redirect.sh