Allow only text/* content-types, better redirecting