All guides
Set it up with your AI assistant
The dashboard gives a ready prompt for your site. Paste it in Claude Code or Cursor, review the change, deploy, then check.
What the dashboard gives you
Next to the rule, the dashboard offers a prompt for your coding assistant. It states the goal, gives the rule for the detected platform as a starting point, and explains how to check. It contains your domain and your paths, nothing else.
The prompt
For example.com, hosted on Vercel:
Set up a reverse proxy on example.com so that Selvio serves our comparison pages.
Goal:
- Every request to /compare/ (and /compare itself) is proxied, not redirected, to https://pages.selvio.io/_h/example.com/compare/, keeping the rest of the path and the query string.
- The browser stays on our domain: no redirect, no change of URL.
- Nothing else on the site changes.
Starting point, for vercel.json:
```
{
"rewrites": [
{
"source": "/compare",
"destination": "https://pages.selvio.io/_h/example.com/compare/"
},
{
"source": "/compare/",
"destination": "https://pages.selvio.io/_h/example.com/compare/"
},
{
"source": "/compare/:path*",
"destination": "https://pages.selvio.io/_h/example.com/compare/:path*"
}
]
}
```
If this project is not set up that way, adapt the rule to how it is actually hosted. Redeploy the site.
Check: once deployed, this address must answer 200 with the text shown:
- https://example.com/compare/_selvio/proxy-check -> selvio-proxy example.com
With Claude Code
- Open a terminal in your site’s repository and start
claude. - Paste the prompt copied from the dashboard.
- Read the change it proposes: it should touch the rule file only (here
vercel.json). - Commit and deploy the way you usually do.
- Click I deployed it, check in the dashboard.
With Cursor
- Open your site’s repository in Cursor.
- Paste the prompt in the chat, in agent mode.
- Review the diff and keep only the rule.
- Commit, deploy, then click I deployed it, check in the dashboard.
Review before you deploy
- The rule proxies (a rewrite, status 200): it does not redirect.
- The destination is exactly
https://pages.selvio.io/_h/example.com/compare/, with your domain. - No other file changed.
- If the assistant adapted the rule to another hosting setup, compare it with the matching guide (all guides).
No code repository?
For a Webflow, Framer or other site builder site, follow the Webflow, Framer guide. Otherwise, write to team@selvio.io.
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.
- Webflow, Framer Site builders have no rewrite rules. Put Cloudflare in front of your domain, then deploy the Selvio Worker on /compare*.