Hi guys,
I’ve a domain xyz.com and I want to
-
redirect the top domain to a specific address e.g. redir / https://google.com 301
-
redirect the rest to a different domain with preserved {uri} e.g. redir /(.*) http://yahoo.com/search/{uri} 301
Just to make sure that I’m well understood, here is an example what I’m trying to achieve:
xyz.com => google.com
.xyz Domain Names | Join Generation XYZ => yahoo.com/search/test
.xyz Domain Names | Join Generation XYZ => yahoo.com/search/a
Even after spending almost an hour on it, still can’t figure it out. It’s working for me in Nginx, but can’t figure it out in Caddy.
Any help is appreciated.