How can we help?

How to Host Your BuildFast Blog on a Subfolder of Your Main Domain on Cloudflare

How to Host Your BuildFast Blog on a Subfolder of Your Main Domain on Cloudflare

Table of content
Prerequisites
Access Workers Section
Create and Modify the worker
Make sure to Make these changes in the code
What this worker Code does
Setup in Buildfast Dashboard
Troubleshooting
This guide will show you how to set up your BuildFast blog to appear as a subfolder on your main domain (e.g., www.mydomain.com/blog) while it's actually hosted on a BuildFast subdomain!

Prerequisites

  • Your main domain (e.g., www.mydomain.com)
  • Your BuildFast blog URL (e.g., my-domain.buildfastblog.com)
  • Access to your Cloudflare configuration
 
 

Access Workers Section

Open Workers Dashboard and click Overview and Then click Create
notion image
 
 

Create and Modify the worker

Create a new Worker and then the worker has to be deployed before it can be changed.
 

Make sure to Make these changes in the code

  • Replace originaslHost with url found on the dashboard in Original blog url without the /custom-folder part
  • Replace yourPath with the he path you choose on the dashboard in Custom Folder - blog or resources1

What this worker Code does

When one visits mydomain.com/blog, the request is forwarded from server to to the BuildFast blog server at my-domain.buildfastblog.com/blog , but the URL in users browser keep showing the original mydomain.com/blog URL

Setup in Buildfast Dashboard

 
notion image
Update BuildFast settings
After setting up the redirect:
  • Go to your BuildFast dashboard
  • Navigate to Settings > Domains
  • Add your sites domain and the select one of the paths available /blog or /resources
  • Save and Regenerate
  1. Verify the setup
    1. Your blog should now be accessible at www.mydomain.com/blog.

Troubleshooting

If your blog isn't appearing at the expected URL after following these steps, try the following:
  1. Double-check your netlify.toml file for any typos
  1. Ensure your Netlify deployment was successful after the configuration change
  1. Clear your browser cache and try accessing the URL in an incognito/private window
If you're still experiencing issues, please contact BuildFast support at [email protected] for assistance.
This setup allows you to seamlessly integrate your BuildFast blog into your main website structure, providing a unified experience for your visitors.
 
Did this answer your question?
Help Center
Powered by Synced.so 🚀