Remove category link

Hook 'template_redirect' action hook and redirect if in category using wp_redirect

add_action('template_redirect', 'no_cat_archives');

function no_cat_archives() {
  if ( is_category() ) { wp_redirect( home_url(), 301 ); exit(); }
}

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)