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
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
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 inOriginal blog url
without the /custom-folder part
- Replace
yourPath
with the he path you choose on the dashboard inCustom Folder
- blog or resources1
Connect your Domain to this worker
- Goto Settings
- Click +Add to add domain & routes on which this code will work.
Add Route
Pick the domain on which the blog will work
Pick the path on which the blog will work
Click Add route
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
URLSetup in Buildfast Dashboard
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
- Verify the setup
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:
- Double-check your
netlify.toml
file for any typos
- Ensure your Netlify deployment was successful after the configuration change
- 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?