Hi, Andrew! Welcome to the Vercel Community
Could you try the following configuration? It will use /(.*)
as the source pattern instead of including the domain and adds a has
condition with type: "host"
to specify which domain the redirect applies to.
{
"$schema": "https://openapi.vercel.sh/vercel.json",
"redirects": [
{
"source": "/(.*)",
"destination": "https://acme-new-site.com/products/$1",
"permanent": true,
"has": [
{
"type": "host",
"value": "acme-old-site.com"
}
]
},
{
"source": "/(.*)",
"destination": "https://acme-new-site.com/products/$1",
"permanent": true,
"has": [
{
"type": "host",
"value": "www.acme-old-site.com"
}
]
}
]
}
Let us know how you get on!