Free URL redirection with Cloudflare
  1. Sign up for a Cloudflare account
  2. Add your domain.
  3. Update your DNS records. Replace example.com with your domain.
     

    Type Name Value Proxy Status
    A @ 192.0.2.0 Proxied
    CNAME www example.com Proxied

     

  4. Update your domain nameservers with Cloudflare’s
  5. Under the “SSL/TLS” menu, select Flexible
  6. Under the “Page Rules” menu, create a page rule with the following pattern:

    *example.com/*

    Select Forwarding URL, your status code choice and the destination URL under the settings.

    This should cover all of the following combinations:

    • http://example.com
    • http://www.example.com
    • https://example.com
    • https://www.example.com
2020-12-05

index