PHPoole A PHP static site generator, renamed Cecil. Hosted on Clay

Host a static site

How do I put a static site online?

Build the site so you have one folder of HTML, CSS and images, with an index.html at the top. Upload the contents of that folder to any host that serves static files and point your domain at it. There is no database to move and nothing to install on the server.

With Cecil that folder is called _site. Its quick start says it in one line: copy the content of the _site directory to a web server. Other generators call it public, dist or build, but it is the same thing.

Before you upload

If you are following along with Cecil, these are the three commands, from its quick start:

php cecil.phar new:site
php cecil.phar build
php cecil.phar serve

The first makes a new site, the second writes it to _site, the third lets you look at it in your browser before anyone else does. Click through every page while it is local. Then check three things that are easy to miss:

  • Links use paths that still work on the real domain, not localhost.
  • There is a page for addresses that do not exist, usually 404.html.
  • If the site replaces an older one, the old addresses send people to the new pages instead of to nothing.

Where to put it

Almost any host can serve a folder of files. They differ in how the folder gets there.

No.Kind of hostHow the folder gets there
001An ordinary web hosting plan, the kind with FTP. OVHcloud even has a guide for CecilFTP upload
002GitHub Pages, Netlify, Cloudflare Pages and similarGit push
003Clay, where your AI puts it online for youAsk Claude or ChatGPT

FTP is the oldest way and still works: open the folder on one side, the server on the other, drag the files across. Hosts that build from Git suit developers, because a push to the repository rebuilds and publishes the site. For both you still have to set up the domain, the certificate and the redirects yourself.

Hand the folder to Claude or ChatGPT

Clay is website hosting you use from inside Claude or ChatGPT. Connect it once, give your AI the folder, or the HTML it just wrote for you, and say "put this online". It goes live on a clay.site address for free, and on your own domain on a paid plan. Every publish is kept as a version, so a change you regret is one message to undo.

This suits people who have a finished site and no wish to learn FTP, DNS or a deploy pipeline. It also suits an old PHPoole site where all you have left is the built HTML: that folder is enough, no generator needed.

Three tools on Clay help with the parts around it:

  • Move your site, if it currently lives on WordPress, Wix or another host.
  • Check its SEO, so titles, descriptions and links are right before search engines see it.
  • Check its speed on a phone. A static site should be quick; this tells you if an image or a font is holding it back.

Questions people ask

Do I need PHP on the server?

No. PHP, or Go, or Ruby, is only needed on the machine that builds the site. The server only sends files.

Can I keep my old addresses?

Usually, if the new pages are at the same paths. Where they are not, add redirects from the old paths to the new ones, so links from other sites and search results still land somewhere.

What does it cost?

Many static hosts have a free tier, because serving files costs them very little. Clay is free on a clay.site address. A domain of your own costs money everywhere, paid yearly to whoever registers it.

Try Clay

Give the folder to Claude or ChatGPT and it goes live on a free clay.site address. Or start with Cecil if you want to build the site yourself first.

Hosted by Clay