Page rules for domain.com and www.domain.com

I created 301 forward url page rules for…

  1. Domain/* Forward URL 301 permanent to https://www.domain.com/level1/level2/page
  2. WWW.Domain/* forward URL 301 permanent to https://www.domain.com/level1/level2/page

When I go to domain I properly get https://www.domain.com/level1/level2/page
When I go to www.domain I only go to https://www.domain.com

Can anyone help how I get root and www to both going to the levels link

Can you take a screenshot of your Page Rules? Also do you have a record for www and is it proxied?

Yes, I have an A record for domain.com pointed to 192.0.2.1 and proxied and a another duplicate record for www also proxied.

Literally, my rules are
Rules 1 - domain.com/* Forward URL 301 to the link above
Rule 2 -www.domain.com/* is the same

Duh. I think I got it.
domain.com/* 301 to https://domain.com/level/level/level/
wwww.domain.com/* 301 to same
Issue was lacking of trailing “/” as adding it and both work now.