I am really struggling to understand what I need to use to get the desired result for an application I am working on:
Client’s app will redirect to the micro application I am writing that is a blog. Both applications are
nextjs apps running on Netlify.
https://client-domain/search/* --> micro app but retains client domain https://client-domain/blog/* --> micro app but retains client domain Example https://abc.com/search?value=hello -> /search?value=hello to micro app https://abc.com/blog/post-1 -> /blog/[slug] to micro app
What I have tried so far is
redirects but I lose the url persistence I’m looking for.
rewrites give me the persistence, but I lose the ability to route to the micro app.
/search/* micro-app-domain/blog/search/:splat 301! /blog/* micro-app-domain/blog/:splat 301! # rewrite /search/* micro-app-domain/blog/search/:splat 200! /blog/* micro-app-domain/blog/:splat 200!
- Is the desired solution even possible?
- Would it be a good idea to talk to the client about using a sub-domain like
Thank you for your help, this has really been kicking my butt.