# Help Page Proxy > Show your QwryAI Help Page on your own domain, like your-domain.com/help, using rewrites (proxies) This guide shows how to use rewrites, also called proxies, to show your QwryAI Help Page on your own domain. Visitors read your help content and chat with your agent without leaving your site. Your Help Page normally lives at `https://www.qwryai.com/YOUR_AGENT_ID/help`. With a rewrite, it appears at a path such as `https://your-domain.com/help`. ## The Core Concept: Rewrites A rewrite works as a proxy. When a visitor opens the `source` path on your domain, your server fetches the page from the `destination` URL and serves it. The address in the visitor's browser doesn't change. * **Source**: the path on your website you want to use. * **Destination**: the full address of your QwryAI Help Page. **1. Open the Help Page deploy sheet** In your agent, open **Channels**, select **Manage** on the **Help page** card, then select **Deploy** in the top-right corner. The **Deploy Help Page** sheet lists a guide for each host. ![The Deploy Help Page sheet with the Visit page row and the Next.js, Vercel, Netlify and Node.js host cards, each with a Read docs button.](annotated/01-deploy-help-page.webp "Deploy Help Page: open your page and pick your host.") > [!NOTE] > > If the sheet shows **Channel disabled**, select **Enable Help Page** first. The hosting guides appear once the Help Page is live. **2. Copy your Help Page address** Next to **Visit page**, select the open icon. Your Help Page opens in a new tab; copy its address. The part before `/help` is your agent's ID. Use it wherever the examples below show `YOUR_AGENT_ID`. > [!NOTE] > > **Required Routes** > > Proxy all three paths, or parts of the Help Page won't load: > > * `/help`: the Help Page. > * `/__qw/*`: its static files (JavaScript, CSS, images). > * `/api/chat/YOUR_AGENT_ID/*`: your agent's chat. > > Replace `YOUR_AGENT_ID` with your agent's ID in every rule. ## Implementation Examples Choose the tab for your framework or hosting platform. > [tab] Next.js > > For Next.js projects, add rewrites to your `next.config.js` file. > > 1. Open or create `next.config.js` at the root of your project. > 2. Add the `rewrites` function to the config. Place the rules before any catch-all route. > > ```javascript > // next.config.js > > /** @type {import('next').NextConfig} */ > const nextConfig = { > async rewrites() { > return [ > { > source: "/help", > destination: "https://www.qwryai.com/YOUR_AGENT_ID/help", > }, > // Static files (JavaScript, CSS, images) > { > source: "/__qw/:path*", > destination: "https://www.qwryai.com/__qw/:path*", > }, > // Your agent's chat > { > source: "/api/chat/YOUR_AGENT_ID/:path*", > destination: "https://www.qwryai.com/api/chat/YOUR_AGENT_ID/:path*", > }, > ]; > }, > }; > > module.exports = nextConfig; > ``` > > Restart your Next.js server to apply the changes, then redeploy. > [tab] Vercel > > If your site is on Vercel, whatever its framework, add the rewrites in a `vercel.json` file. > > 1. Create `vercel.json` at the root of your project if it doesn't exist. > 2. Add a `rewrites` array. > > ```json > { > "rewrites": [ > { > "source": "/help", > "destination": "https://www.qwryai.com/YOUR_AGENT_ID/help" > }, > { > "source": "/__qw/:path*", > "destination": "https://www.qwryai.com/__qw/:path*" > }, > { > "source": "/api/chat/YOUR_AGENT_ID/:path*", > "destination": "https://www.qwryai.com/api/chat/YOUR_AGENT_ID/:path*" > } > ] > } > ``` > > Vercel applies these rules on your next deployment. > [tab] Netlify > > For sites on Netlify, add the rules to your `netlify.toml` file. > > 1. Create or open `netlify.toml` at the root of your project. > 2. Add these rules. `status = 200` serves the page without changing the address: a rewrite, not a redirect. > > ```toml > # netlify.toml > > [[redirects]] > from = "/help" > to = "https://www.qwryai.com/YOUR_AGENT_ID/help" > status = 200 > force = true > > # Static files (JavaScript, CSS, images) > [[redirects]] > from = "/__qw/*" > to = "https://www.qwryai.com/__qw/:splat" > status = 200 > force = true > > # Your agent's chat > [[redirects]] > from = "/api/chat/YOUR_AGENT_ID/*" > to = "https://www.qwryai.com/api/chat/YOUR_AGENT_ID/:splat" > status = 200 > force = true > ``` > > Commit and push the file; Netlify applies the rules on the next deploy. > [tab] Node.js (Express) > > On your own Node.js server with Express, use the `http-proxy-middleware` package. > > 1. Install the packages: > > ```bash > npm install express http-proxy-middleware > ``` > > 2. Add the proxies to your app, before any body parser or catch-all route. > > ```javascript > // server.js > const express = require("express"); > const { createProxyMiddleware } = require("http-proxy-middleware"); > > const app = express(); > const AGENT_ID = process.env.QWRYAI_AGENT_ID; // YOUR_AGENT_ID > const under = (base) => (path) => path === base || path.startsWith(`${base}/`); > > // The Help Page > app.use(createProxyMiddleware({ > target: "https://www.qwryai.com", > changeOrigin: true, > pathFilter: (path) => path === "/help", > pathRewrite: () => `/${AGENT_ID}/help`, > })); > > // Static files (JavaScript, CSS, images) > app.use(createProxyMiddleware({ > target: "https://www.qwryai.com", > changeOrigin: true, > pathFilter: under("/__qw"), > })); > > // Your agent's chat, including its live connection > app.use(createProxyMiddleware({ > target: "https://www.qwryai.com", > changeOrigin: true, > ws: true, > pathFilter: under(`/api/chat/${AGENT_ID}`), > })); > > app.listen(process.env.PORT || 3000); > ``` ## Check it works * Open `your-domain.com/help` and check that the Help Page loads with your logo and colors. * Send a few messages and wait for each full reply. * Reload the page and check that the conversation is still there. > [!NOTE] > > **Live connection.** Vercel and Netlify rewrites don't carry WebSocket connections. On those hosts the chat uses regular HTTP requests instead, and replies still arrive as they're written. > [!NOTE] > > **Sitemaps** > > Your proxied Help Page isn't added to your domain's sitemap automatically. If search ranking for it matters, add `your-domain.com/help` to your sitemap yourself.