Redirect to archive is single post has a certain term assigned to it?

There is a template_redirect hooks which is perfectly suitable for task like this.

  1. Hook into template_redirect
  2. Check your context (is_single(), etc)
  3. Redirect with wp_safe_redirect() (if it’s inside a site)
  4. die() to prevent execution from proceeding