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
customer1.domain.com to www.domain.com/customer1
for all such subdomains, except www.domain.com

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