Redirect to

This tutorial covers redirecting to when using Cloudflare, to do the opposite, please see Redirect to

You should replace all instances of in the screenshots with your domain.

Step 1, The DNS Record:
The first thing you will need is a DNS record for www, set to :orange:. This can point to any IP address as the redirection page rule will execute first. I would recommend pointing it to, a dummy IP.

Step 2, The Page Rule:
The second step is the page rule that will perform the redirect. You should add one like this:

The * means it will forward all pages and the $1 will keep the path, i.e. if you typed in, you would be redirected to

Introduction to redirecting with page rules video

This is a Community Tutorial, most are wiki posts, so can be contributed to by Regulars and MVPs here, you can view all the community tutorials here. If there is a tutorial you would like to see, you can request one here.

Other great resources on this community include the Community Tips . These address best practices when configuring Cloudflare, how to fix issues you may see, and tools to troubleshoot. Also you can view Expert Tips, great posts on the community that can help users with a similar issue.

We encourage users to check out these great resources and the Cloudflare Support Centre before posting