I found out how to enable article archiving in function.php, but
I want to ignore the permalink settings and change to any URL.

I tried to set it as follows by imitating the appearance, but it still does not display well.

function post_has_archive ($args, $post_type) {
    if ('post' == $post_type) {
        $args ['rewrite'] = true;
        $args ['has_archive'] ='blog';// Arbitrary slug name
        $args ['with_front'] = false;
    return $args;
add_filter ('register_post_type_args','post_has_archive', 10, 2);
▼ Details

Permalink settings: http://hoge.com/post-%post_id%

Current URL: Http://hoge.com/post-blog

Ideal URL: Http://hoge.com/blog

If i have any questions, we would appreciate it if you could help us.