check for #redirect as well as #REDIRECT (case-insensitive)