How to set rules for subdomain?

Hello,

How can I set rules for subdomain?

Let say my domain is example.com, how can I create rules for abc.example.com so it only allow traffic from specific domain (https://example.com/share)?

Thank you.

Which rules? Page rules? Firewall rules?

Page rules. So I setup like this:

URL: abc.example.com
Select “forwarding URL”
301 - permanent redirect
Destination: https://example.com/share

Somehow when I visit ‘abc.example.com’ it still direct me to that URL instead of ‘https://example.com/share

Am I missing something? Maybe I need wait a while before it’s working?

Thank you.

Apparently I turned off the cloudflare network. It works fine now.

Thank you.