redirect if output=html or unspecified