Need Free Hosting? Checkout Cloudflare Pages

I was hosting my site from home on my NAS until I discovered Cloudflare Pages.

  1. Make a private repository on Github and upload your site files from a Blocs export (I use GitHub Desktop to upload as it makes it super easy"
  2. Go to Cloudflare then Workers/Pages on the main dashboard
  3. Create Application > Pages > Connect to Git > Choose your repository > Begin setup > name the project > Save and deploy
  4. Go to custom domain under project settings and enter your domain name
  5. Setup the CNAME record on your domains name servers
  6. Done! Free hosting!

Optional: To get 404 pages to work make a 404 page template on your site in blocs. Export your site and rename the 404 page to 404.html. Edit the code manually for this page and replace “…/” with “https://yourdomain.com/” using a find and replace function. Then place this 404.html file at the root of your site’s repository in GitHub.

Check out my sites on Cloudflare pages:
My Portfolio
Client’s Dog Treat Site

Also forgot to mention I am using Web3Forms to process contact forms instead of PHP. Let me know if you need help setting that up