Set up Selvio on Netlify with _redirects
Two proxy lines with a forced 200 status in the _redirects file of your published folder, then redeploy and check.
Where the rule goes
Put the lines in a file named _redirects, without extension, in the folder Netlify publishes (often public/ in the sources, copied to the build output). If the file exists, add them at the top.
The rule
For example.com, with the pages under /compare/. In the dashboard, the same rule is already filled in with your domain and path: copy it from there. If your pages exist in several languages, it has one more block per language (/fr/compare/…).
/compare https://pages.selvio.io/_h/example.com/compare/ 200!
/compare/* https://pages.selvio.io/_h/example.com/compare/:splat 200!
After
Commit, then redeploy. The file must be in the published output of the build, not only in the sources.
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
- Netlify applies the first rule that matches: the Selvio lines go before any catch-all such as
/* /index.html 200. - The status must be
200!. A301or302is a redirect: the visitor lands on pages.selvio.io. The!applies the rule even if a file exists at that address. - With redirects in
netlify.toml, you can keep using it: one[[redirects]]per line, withfrom,to,status = 200andforce = true. Rules in_redirectsare applied first. - Trailing slash: keep both parts of the rule,
/compare(the comparison home page, without a final slash) and everything under/compare/. Do not add or remove a slash in the destination. - Cache: a CDN or the browser can keep an old 404 for a few minutes. Test the check address with
curlor in a private window.
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.
- 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.
- Webflow, Framer Site builders have no rewrite rules. Put Cloudflare in front of your domain, then deploy the Selvio Worker on /compare*.
- AI assistant The dashboard gives a ready prompt for your site. Paste it in Claude Code or Cursor, review the change, deploy, then check.