#How to redirect one specific domain to a specific path?

8 messages · Page 1 of 1 (latest)

civic cypress
#

For example I want all traffic to my domain example.com/* to be directed to /my-path/*

Is it possible to do it?

steep juniper
civic cypress
#

It's not for components, I added another domain to Vercel and I need to redirect all traffic, but not to the main domain, but to the sub-path

steep juniper
#

And match the root route

civic cypress
#

yeah, I've tried that many times via next.config.js but I cannot find the correct syntax.

#

In the middleware I cannot find example with a different domain or host