I needed a way for people to get to my site without having to type “www” in the address bar. I first used a service called “wwwizer” but then found that you can do this WITHIN CloudFlare by setting up “Page Rules”. NOTE: You only get 3 with a free domain, but you only need 1 for this.
Sign into CloudFlare and then go to Page Rules. Create one that:
1 2 3
example.com/* # forwarding URL - 301 Permanent Redirect http://www.example.com/$1
From the link: The solution is to use variables. Each wildcard corresponds to a variable when can be referenced in the forwarding address. The variables are represented by a
$followed by a number. To refer to the first wildcard you would use
$1, to refer to the second wildcard you would use
$2, and so on.
- In this case, if someone went to:
- They would be redirected to: