Page Rule 301 Forwarding URL working for http but not https

I have one Page Rule for my site:

discord.mysite.xyz/

Forwarding URL: (Status Code: 301 - Permanent Redirect, Url: https:// discord.gg/aaaaaa)

In the SSL/TLS settings:

SSL → Full (strict)

Always Use HTTPS → On

HSTS → On, Max-Age: 6 months, Include subdomains: On, Preload: On

Authenticated Origin Pulls → On

Opportunistic Encryption → On

Onion Routing → On

Automatic HTTPS Rewrites → On

Right now:

http:// discord.mysite.xyz → WORKS

https:// discord.mysite.xyz → SITE CANNOT BE REACHED

https://support.cloudflare.com/hc/en-us/articles/218411427

That article says “If omitted, scheme matches both http:// and https:// protocols”, but I also tried specifying https:// and still couldn’t get it to work.

Hi @warcrafthalsey,

Are you able to share the domain name in question, please?

For a page rule to work, you need to have a DNS record set to :orange: for the domain/subdomain that you want it to trigger for. You can create a record pointing to 192.0.2.1, a dummy IP address.

In your case, the record name should be ‘discord’.

You can read more about this in our community tutorial.

Thank you! I setup the A record. Once it has had time to resolve, I’ll post an update here and mark yours as the solution.

EDIT: Now working! Thanks again.

1 Like

I’ve done this step and I get a page from Cloudflare that it fails to find the host (host error).
Not sure what else to do!

Hi @rjm2884,

can you share the domain name?

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