Write a script that checks for the correct redirects