Set up Selvio on Webflow or Framer
Site builders have no rewrite rules. Put Cloudflare in front of your domain, then deploy the Selvio Worker on /compare*.
Why Cloudflare
Webflow, Framer and other site builders host your site but do not let you add a rewrite rule. Cloudflare can sit in front of your domain: it passes every request to your builder as before, and a small Worker sends /compare/ to Selvio.
Site on Framer: write to us first
Framer asks for its domain to stay DNS only (grey cloud): behind Cloudflare’s proxy, its certificate may stop renewing, and the site go down weeks later. This guide therefore does not apply to Framer.
- With Framer’s Pro plan and its Advanced Hosting add-on, a native rewrite rule sends
/compare/*to Selvio, without Cloudflare. We give you the rule. - Without that add-on, write to team@selvio.io: we work out the setup with you before touching your domain.
Before you start
- Access to your domain registrar (where you bought the domain), to change its nameservers.
- A Cloudflare account. Workers are available on the free plan.
- The list of your current DNS records, from your registrar or your builder’s domain settings. Keep it: you will compare.
- If your builder’s help center has a page about Cloudflare, read it first: some builders ask for specific settings.
1. Add your domain to Cloudflare
In Cloudflare, add your domain. Cloudflare reads your current DNS records and imports them. Compare them with your list: every record must be there, with the same value, including the email ones (MX, TXT). Add any that are missing.
2. Keep the records, proxy the site
Do not change any value your builder gave you. Set the records of the site itself (the root domain and www) to proxied, the orange cloud. Leave the email records as they are.
In the SSL/TLS settings, choose the Full (strict) encryption mode. With Flexible, a builder that forces HTTPS can loop on redirects.
On Webflow, Cloudflare’s proxy is supported on three conditions:
- The root domain and www are
CNAMErecords tocdn.webflow.com. If Webflow still shows A records (198.202.211.1) orproxy-ssl.webflow.com, update the domain connection in Webflow first: proxied, those old settings return a 525 error. - SSL is validated before the proxy. Keep both records DNS only (grey cloud) until Webflow shows SSL as active, then switch them to orange.
- If your domain has CAA records, they allow Let’s Encrypt and Google Trust Services.
3. Change the nameservers
Cloudflare gives you two nameservers. At your registrar, replace the current nameservers with these two. The change takes from a few minutes to 48 hours; Cloudflare shows when the domain is active. The site stays online meanwhile: the records are the same on both sides.
4. Deploy the Selvio Worker
Follow the Cloudflare guide: create the Worker with the code from the dashboard, deploy it, and add the route example.com/compare*, plus www.example.com/compare* if your site answers on www. Keep the route this narrow: a Worker on the whole domain would get in the way of your builder’s traffic.
5. Check
Open https://example.com/compare/_selvio/proxy-check in a browser, or run this command. The address must answer 200 with this text: selvio-proxy example.com.
curl -i https://example.com/compare/_selvio/proxy-check
Then click I deployed it, check in the dashboard: it reads the same address on your domain. The check works before anything is published.
- A 404 from your site: the rule is not in place, or not deployed yet.
- A 301 or 302, or the address bar shows pages.selvio.io: the rule redirects instead of proxying.
selvio-proxyfollowed by another domain: the destination has the wrong domain. Copy the rule from the dashboard again.
Common pitfalls
- Webflow shows “Update needed” on the domain once the proxy is on: this is expected, the proxy hides your records. The site works.
- 525 error on Webflow: the records are still the old ones (A or
proxy-ssl). Set them back to grey, update the connection in Webflow, then switch back to orange. - Your builder shows the domain as not connected for another reason: check that the records have exactly the values it asks for.
- The host visitors use was left on DNS only (grey cloud): the Worker never runs.
- Domain bought from the builder itself: check in its domain settings that you can change the nameservers. Some ask you to transfer the domain first.
To undo
Delete the Worker routes: your builder serves the site through Cloudflare, as before. To leave Cloudflare, set the previous nameservers back at your registrar.
Other guides
- Next.js Add two rewrites to next.config.js so that /compare/ is served by Selvio, then redeploy and check.
- Vercel For sites hosted on Vercel without Next.js: two rewrites in vercel.json, a redeploy, and the check.
- Netlify Two proxy lines with a forced 200 status in the _redirects file of your published folder, then redeploy and check.
- Cloudflare For any site behind Cloudflare: deploy a small Worker and route /compare* on your domain to it.
- nginx Two location blocks in the server block of your site, a configuration test, and a reload.
- AI assistant The dashboard gives a ready prompt for your site. Paste it in Claude Code or Cursor, review the change, deploy, then check.