I tried setting redirects below, but I'm in trouble because I can't do what I want to do.
I can't write the part of "*" with a regular expression. Is there any way? ? ?

is as follows.

Redirects https://example.jp/contents/*** to https://example-new.jp/contents/***
<p>・ All contents and below are redirected</p>
Router :: redirect ('/ contents/*', 'https://example-new.jp/', array ('status' =>302));

・ Nothing is redirected

Router :: redirect ('/ contents/(?! image /).+$', 'https://example-new.jp/', array ('status' =>302));

Reference URL: https://book.cakephp.org/2/en/development/routing.html#redirect-routing