Updated regex redirect checker.

This resolves the issue regarding regex statements and 404 pages not loading.