Issue with Redirecting Domain to a Specific URL using Cloudflare Domain

What is the name of the domain?

dmtgarden.net

What is the error number?

522

What is the error message?

Connection timed out Error code 522 Visit cloudflare for more information.

What is the issue you’re encountering

Despite setting up the DNS records and Page Rules as described, when I try to access my domain URL, I encounter Error 522.

What steps have you taken to resolve the issue?

Description:
I am trying to configure my domain and www. to redirect to a specific URL.
I initially set up CNAME records pointing to the URL, but encountered Error 1016. After some research, I learned that DNS records can only point to domains, not specific URLs.

I decided to use Cloudflare’s Page Rules to handle the URL redirection.

Problem:
Despite setting up the DNS records and Page Rules as described, when I try to access my domain URL, I encounter Error 522.

What are the steps to reproduce the issue?

1- Access my domain URL from browser.

Screenshot of the error

Adding more context to this issue:

I decided to use Cloudflare’s Page Rules to handle the URL redirection. Here is what I have done so far:

DNS Records Configuration:

  • A Record for dmtgarden.net:
    • Type: A
    • Name: @
    • Content: 192.0.2.1 (an IP used by Cloudflare for redirection)
    • Proxy status: Proxied
    • TTL: Auto
  • A Record for www.dmtgarden.net:
    • Type: A
    • Name: www
    • Content: 192.0.2.1
    • Proxy status: Proxied
    • TTL: Auto

Page Rules Configuration:

  • Rule 1:
    • URL pattern: dmtgarden.net/*
    • Setting: Forwarding URL (301 - Permanent Redirect)
    • Destination URL: skool.com/dmtgarden/about
  • Rule 2:
    • URL pattern: www.dmtgarden.net/*
    • Setting: Forwarding URL (301 - Permanent Redirect)
    • Destination URL: skool.com/dmtgarden/about

That screenshot is not a page rule. Do not use a custom filter expression here, but redirect all requests.

1 Like

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.