I have a main site that is deployed on Netlify eg : www.example.com
And I have a subdirectory under this main site called blog eg : www.example.com/blog
As per the below community post, I have created another Netlify site [sleepy-roentgen-3eb28f]
eg : blog.example.com with redirect rule in the site’s Ntelify.toml
Last reviewed by Netlify Support Staff: December 2022
Say you have an awesome blog as part of your larger website. But you’ve chosen to have your awesome blog in its own, separate git repository apart from the rest of your site content. How can you make this work so that your visitors have a seamless experience browsing that content as well under your one, main hostname? Proxying to the rescue!
Yes, Netlify is built around the “single codebase per site” model. But this isn’t to say that you c…
And I followed the below too
https://answers.netlify.com/t/forwarding-subdomain-to-a-path/2988/3
But when I browse the URL on the browser for the blog content, I see the URL change from www.example.com/blog/post-1 to blog.example.com/blog/post-1 instead of there being no change.
jen
September 25, 2020, 9:55pm
2
Hey @indcoder ,
Is the expected result that https://www.hackmum.in/blog/*
would redirect behind the scenes to https://blog.hackmum.in/*
?
If that’s the case, could you please post the netlify.toml of your https://www.hackmum.in site? Thank you!