Skip to content

Proxying Requests Through Netlify

To proxy JamComments requests through your Netlify domain, you can use either netlify.toml or a _redirects file.

Add this to your netlify.toml:

[[redirects]]
from = "/jamcomments/*"
to = "https://go.jamcomments.com/jamcomments/:splat"
status = 200

If you prefer a _redirects file, add this line:

/jamcomments/* https://go.jamcomments.com/jamcomments/:splat 200

After deploying, any request to your-site.com/jamcomments/* will be proxied to JamComments. Your visitors see your domain in the address bar, but JamComments handles the actual request.

See Netlify’s documentation on redirects and rewrites.