adding rules for redirect stuff