I would like all my requests to www.example.com to be redirect to example.com, in order to ease anaylitics and for marketing reasons. I could not find out how to this this with CloudFlare (I was used to doing that in Namecheap's Redirect records)
Asked
Active
Viewed 5,416 times
6
-
You'd typically do it on the server, not via DNS. – ceejayoz Dec 18 '15 at 19:55
2 Answers
7
I guess I just solved the problem. I added a CNAME for the www subdomain plus a PageRule to forward requests made to it.

rbaprado
- 131
- 1
- 5
2
This is the redirection page rule that worked for me.
*www.qforex.ml/* --> https://qforex.ml/$2
The number after $
will represent the nth occurrence of *
.
The image below shows the details.

Gerald Schneider
- 23,274
- 8
- 57
- 89

xux99
- 21
- 1