Add rewrite rule for archive search

add_action( 'init',  function() {
    add_rewrite_rule( '(.+)/search/(.+)/?$', 'index.php?post_type=$matches[1]&s=$matches[2]', 'top' );
} );

It works done.

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