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