Skip to main content
Version: v0.x

How do I redirect traffic to other places?

Proxyflare can redirect traffic from absolute or wildcard pathnames on your domain to other places.

const redirectRoute: Route = {
from: { pattern: "" },
to: {
url: "",
// permanently redirect traffic to
statusCode: 301,

const routes = [redirectRoute]

This route redirects traffic on to because it contains a 3xx statusCode.

Providing a statusCode is useful for redirects or any time you want to lock the response status code on a Route.