Add a blog to Netlify
Serve a BlogFrame blog at yourcompany.com/blog on Netlify with two lines in _redirects, or at blog.yourcompany.com with one DNS record.
Netlify can forward a folder to another service with a 200 rewrite, so visitors stay on your domain while BlogFrame serves the blog. It takes two lines in your _redirects file and works for any site you deploy on Netlify.
| Address | Example | On Netlify |
|---|---|---|
| Subdomain | blog.yourcompany.com | Every plan, including Free |
| Subfolder | yourcompany.com/blog | Creator and up |
Subdomain
Open your project in the dashboard and enter the subdomain you want, for example blog.yourcompany.com. The dashboard shows the CNAME record to add.
If Netlify DNS manages your domain, add the CNAME under Domains in Netlify. Otherwise add it at your DNS provider.
Wait for the record to apply. This usually takes a few minutes and can take up to an hour. BlogFrame sets up SSL for you.
Subfolder
The 200! status is what makes Netlify forward the page instead of redirecting the visitor. In your project, enter yourcompany.com/blog under Subfolder on your website. The dashboard shows the rule with your project's real address in place of <your-project>. Add it, deploy, then click Check connection.
Netlify
In _redirects (in your publish folder):
/blog https://customers.blogframe.app/_p/<your-project>/blog 200!
/blog/* https://customers.blogframe.app/_p/<your-project>/blog/:splat 200!The 200 status makes Netlify forward the page instead of redirecting.
Tips for Netlify
- _redirects must end up in your publish folder (for example dist or public, depending on your build).
- If you use netlify.toml for redirects instead, add the same two rules there with status 200 and force = true.
More on addresses: Connect your domain.