How can I use Fastify’s rewriteUrl option for all requests with a path that starts with /r/
and rewrite the url to https://example.com/example
?
Asked
Active
Viewed 542 times
0
-
do you mean to forward the request to another domain? – Manuel Spigolon Apr 26 '21 at 20:04
-
@ManuelSpigolon yes, I wish to rewrite the url to another domain – Bob Stanley Apr 26 '21 at 21:28
-
You need to use https://github.com/fastify/fastify-reply-from I will try to arrange a complete answer – Manuel Spigolon Apr 28 '21 at 06:12