Need to redirect multiple subdomains on 1 page rule

I have already used 3 page rules I want to redirect multiple subdomains on 1 page rule:
https://example.com/*
https://www.example.com/*
https://www.example.com/*
https://wvw.example.com/*
To =======>

https:// ww1.example.com/$1

I tried:

`https://.example.com/
to =>

https://www1.example.com/$1, but it’s not working.

Any Advice?

I added " * " before example.com/

First, you don’t need the scheme in a Page Rule, so you can omit https://

A cheater way to do this is something like:
Rule #1: Match www.example.com* and add a setting that pretty much does nothing.
Rule #2: Match *.example.com/* and do the forwarding you want. It won’t trigger on www.example.com because it already matched Rule #1 and won’t get to Rule #2.

I tried .example.com/ to https://ww1.example.com/$1 the rule 2 not working (error loops)

Ah, then add another rule before that to match ww1.example.com/* with a do-nothing setting.

This topic was automatically closed after 14 days. New replies are no longer allowed.