We are launching our site onto a new content management system. We want to slowly do this transition. One of those parts is hosting the old site “inside” the new site for a set of content. In this case we want to “iFrame” in the content of our existing blog posts. We’ve created a component that will read the path of the current URL and use that to make the iFrame src.
What we need help with is getting the redirect rules correct. Right now we keep getting a
404 when attempting to use the redirects.
Here are the redirects
/all/blogs/* /old-site 200! /blogs/* /old-site 200!
What we’d like to see is a url that goes to
https://example.com/all/blogs/slug-of-blog-post but is passed to the new site’s
https://example.com/old-site with the full URL being parsed. Going to
https:/example.com/old-site works, however we want to do the proxy rewrite so the end-user never really sees the
old-site in the URL and we can more easily transition to our new netlify deployment.
Any guidance appreciated.
We also have a not forced rewrite rule in the
netlify.toml to ensure we keep any existing marketing urls working from emails.
[[redirects]] from = "/*" to = "/amer/us/en-us/:splat" status = 200
Does having the two sets of redirects cause an issue?