Redirect URL through page rules

Hey!

I want to create a redirect page for my domain. I have my domain name (namelessflux.ml) and I want to make a redirect. I want it so that when a user visits discord.namelessflux.ml, they get redirected to my discord invite link (discord.gg/EDJaQgnCR8).

I watched a bunch of tutorials and this is what I did:
Under page rules, I made a rule, If url matches discord.namelessflux.ml , Then, Forwarding URL to discord.gg/EDJaQgnCR8 and selected 302, temporary redirect.
Still, its been 30 minutes and it isn’t working.
What do I do?

Thanks in advance!

Hi,

You don’t seem to have a DNS record for the subdomain “discord”. You should go to https://dash.cloudflare.com/?to=/:account/:zone/dns and create an A record with name “discord” pointing to the IP address of your root domain, and set to proxy (:orange:). After the record propagates (a few minutes), you set the redirect and it should work.

1 Like