I tried multiple methods,
/blog* https://blog.example.com/:splat 200in
- The CSS was not working correctly for the blog
- The blog links did not work correctly, since the blog is set to
https://blog.example.com/blog. All links would work as
https://example.com/my-new-blogwhere as it should be
/blog* https://MY_BLOG_IP/blog/:splat 200in
MY_BLOG_IP/bloghosts the blog.
Since this was a redirect from
example.com/blog, in Nginx I couldn’t figure out a way to avoid
example.com/blog redirecting to
Let me know if there are any solutions to make this work.