Cloudflare provides basic support for forwarding your domain. Unfortunately it's not targeted for redirect specific features.
redirect.pizza automatically installs & manages an SSL certificate and makes sure it never expires, and provides redirect specific analytics. Let's get started!
Step 1: Create a redirect.pizza account
Get started today by creating an account: https://redirect.pizza/register.
Step 2: Add your domain to redirect.pizza
Add your domain you wish to redirect. For our example, we have a domain with Cloudflare 'redirect-pizza-forward.xyz'. Add the domain to the 'Source URL' field. We recommend adding www & the apex (non-www).
You see the DNS 'checking' as the detected & required values are different.
Note: In the screenshot below we've detected that 'proxy mode' is enabled in Cloudflare. Our redirect will not work when this mode is enabled.
Step 3: Navigate to Cloudflare
To allow redirecting via redirect.pizza, we need to make a one-time DNS change at Cloudflare. Login with your Cloudflare credentials and click on your domain.
Now click on 'DNS' in the menu on the left.
Step 4: Changing the DNS
We are now ready to change the DNS. You will probably see a screen that looks something like the screen below. Before adding the correct DNS records, make sure any existing A record for 'www' and '@' are removed. All other records may remain intact. You can do this by pressing 'Edit' and clicking the 'Delete' button for these records.
Then add the following records.
- Record with Type 'CNAME' Name '@' and Content 'edge.redirect.pizza'
- Record with Type 'CNAME' Name 'www' and Content 'edge.redirect.pizza.'
Important: When adding these records, make sure the Proxy mode is disabled. See the screen below:
After adding these records, your screen should now look like this:
Step 4: DNS verification in redirect.pizza
The DNS changes have been made! This takes some time before the internet picks up these changes. In most cases, it should be done within a few hours, depending on the TTL set on those records.
redirect.pizza will automatically keep checking the DNS records. If it's detected to be correct, a SSL certificate will be automatically requested & installed.
Closing
That's it! You've succesfully setup redirect.pizza with Cloudflare. The domain now has full HTTPS support and is redirecting via redirect.pizza.
Consider subscribing to one of our paid plans to help us out! ❤️