Host a static site
A static site is a folder of plain files, such as index.html, styles and images, with no PHP or database behind it. Static sites are fast and need almost no upkeep. Site generators such as Hugo, Jekyll, Eleventy or Astro build this kind of folder.
Put it online
- Open Account → Hosting → your site → Websites and add a site, or use an existing one.
- Upload your files to the site's folder with Files, FTP, or Git.
index.htmlmust sit at the top of the folder. See Upload your website. - Open the site in a browser to check it.
The site's dashboard recognizes the folder as a Static site once it holds an index.html and no PHP.
Make it fast with cache headers
Plain files are already quick to send. The biggest gain is telling browsers to keep images, fonts and styles between visits.
- Open the site from Websites and go to the Cache headers tab.
- Choose Standard or Long, then click Save.
We load the home page and one of its files afterward. If either doesn't come back as expected, we put the previous setting back. See Caching for sites not built on WordPress for what each preset does.
Pages themselves are never kept, so visitors always see your latest text. If you replace a style or script file but keep its name, give it a version, such as site.css?v=4, so browsers fetch the new one.
Check its speed
Open the Speed tab and click Measure now. A static site usually scores 90 or more. See Read the Speed tab.
If something goes wrong
| Problem | Fix |
|---|---|
| The browser lists files instead of showing the site | index.html is missing or in a subfolder. Move it to the top of the site folder |
| Old styles show after an update | Version the file name, or choose a shorter preset |
| Images are slow | Resize them before upload. See Optimize images for the web |
Still stuck? Ask us and we'll walk you through it.
