How can I redirect all subdomains to subdirectory except www

I have a website which used to be a Wordpress multisite. so there exist several subdomains indexed in google and have 1000s of backlinks.

Can I use Cloudflare pagerules
or Cloudflare redirect rules (beta)
to wildcard redirect to
for all such subdomains, except

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.