Redirect Custom Post Type from Child Taxonomies

Your taxonomy is set to 'hierarchical' => true, do you have the post included in both the parent and child category?

If you untick the parent category and only tick sub-category then it should use the first URL only.

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