Add redirect in case of non-html content