Redirecting URL using cloudflare redirect rules

Neeraj Singh

By Neeraj Singh

on March 14, 2023

At BigBinary we had been using AceInvoice as our time tracking and invoicing tool for years. Last year we migrated all the data to neetoInvoice.

All this time the website of AceInvoice was not redirecting to neetoInvoice. Today we did that using Cloudflare. The URL forwarding or redirecting with page rule is a neat feature of Cloudflare. Below are the screenshots of the steps taken to redirect the urls. More details are covered in the video.

Handling www version

WWW version

Handling no www version

No WWW version

We didn't mention it in the video but it's worth knowing that we need to have a CNAME record for a subdomain which needs forwarding. For examples let's say that we need to forward all traffic from to We can't directly add a page rule for this. For we need to add a DNS entry for subdomain videos and this entry must have cloudflare "proxy" checked so that you see Proxied next to it. If you see "DNS only" then that means cloudflare will not be able to do any forwarding.

Stay up to date with our blogs. Sign up for our newsletter.

We write about Ruby on Rails, ReactJS, React Native, remote work,open source, engineering & design.