Check where the server is currently at to redirect to the appropriate page