Guide

How to publish a website you already have.

The design is done and the files are in a folder. Here is what happens between that folder and an address you can send to anyone.

TL;DR

To publish a website, you put its folder of files on a host, which serves them to visitors under an address with HTTPS. You can upload the folder by hand, connect it to a host through Git, use a website builder’s publish button, or let a coding agent do the upload for you.

What publishing a website actually means

If you want to know how to publish a website, start with what you have. A finished website is usually a folder: an index.html (the home page), a few more pages, a stylesheet, some scripts and the pictures. Maybe a designer sent it to you, maybe Claude Code wrote it, maybe it came from a template. When you open index.html in your browser, the site looks right, but nobody else can see it.

Publishing means copying that folder to a computer that is always on and connected to the internet, and giving it an address. That computer is the host. When someone types the address, the host sends them the files, and their browser shows the site exactly as it looks on your laptop.

This guide is about sites made of finished files, also called static sites: nothing has to be computed on a server when a visitor arrives. Most portfolios, café pages, studio sites and landing pages are like that. A shop with a checkout or a page with member logins needs more, and is a different job.

The four things every live website needs

Whichever way you choose, the same four parts come together. Knowing them makes every host’s dashboard easier to read.

  • A host: the service that stores your files and sends them to visitors. For a static site this can be very simple. More on the kinds of hosting in how to host a website.
  • An address: either one the host gives you for free (like your-site.heyweb.page) or your own domain (like cafe-lindenhof.at), which you rent by the year from a domain registrar.
  • HTTPS: the lock in the browser bar. It encrypts the connection, and browsers warn visitors about sites without it. Most hosts set it up for you at no extra cost.
  • A way to update: the site will change. Opening hours, prices, a new project. How you publish the second version matters as much as the first.

Four ways to put a website online

All four end with a live address. They differ in what you have to learn and in how updates work.

WayWhat you doGood to know
Upload by handDrag the folder into a static host’s dashboardQuick the first time; you repeat it for every change
Git plus a hostKeep the folder in a Git repository, the host publishes every new versionThe standard for developers; a few new tools to learn
A website builderPress Publish in the builderOnly works for sites built inside that builder
A coding agentAsk Claude Code, Codex or Cursor to put it onlineNothing new to learn; the agent asks before each step

A Git repository is a folder that remembers every version of its files. A website builder cannot take a folder you already have; it is for building from scratch. The agent way, step by step: publish a website built with Claude.

From folder to live address, step by step

These steps hold for any static host. Where the ways above differ, it is said.

  1. Step 1: Check the folder

    index.html must sit at the top level of the folder, not one level down. Pictures, fonts and styles must be inside the folder too, linked with relative paths. Open index.html from the folder and click through every page once. If you used a site generator, the folder to publish is its build output (often called dist or public), not the source.

  2. Step 2: Choose a host

    For a folder of plain files, a static host is enough. Pick one with HTTPS included and a way to update that you will actually use: a dashboard to drag into, Git, or your coding agent.

  3. Step 3: Upload the folder

    Drag it into the host’s dashboard, push it to the connected Git repository, or tell your agent “put this site online”. The host replies with an address on its own domain.

  4. Step 4: Check the live site

    Open the address on your phone and on a laptop. Click every link, look at every picture, send the contact link to yourself. A broken picture online usually means a file name with different capitals or a path that pointed outside the folder.

  5. Step 5: Add your own domain

    In the host’s settings, add your domain. The host tells you which records to set at your domain registrar (the DNS settings, the address book of the internet). Changes there can take a while to reach everyone.

  6. Step 6: Confirm HTTPS

    Once the domain points to the host, it should issue a certificate on its own. Open the site with https in front and look for the lock before you tell anyone the address.

Paste this into your agent.

Set up heyweb from app.heyweb.ai/start and put this site online.

Free until a site goes live. Then $12 a month per site, plus tax.

How to put a website online if you don’t code

Most guides on how to put a website online assume you know Git and a terminal. You do not need either for a static site. Uploading by hand works well for a site that rarely changes: a wedding page, an event, a portfolio you touch twice a year.

If the site changes often, uploading by hand becomes the weak part. Someone has to remember which folder is the newest, and an old copy can overwrite a newer one. Git solves that for developers. For designers who build with Claude Code, Codex or Cursor, the agent can do the Git part and the upload for you, in plain words. See Claude Code for how that looks.

If you wonder how to publish an HTML website that is just one file, the steps are the same, only shorter. There is a separate guide for that case: host an HTML file.

Publishing again: updates, history, editors

The first upload is the easy part. Ask yourself now who will change the site in six months. If it is you, choose the way you find least annoying, because you will repeat it. Keep the folder you publish from in one place, and do not edit files directly on the host.

If the site is for a client, think about who changes a price or an opening time. A café owner should not have to call you for a new cake of the week, and they should not be able to move your layout either. Plain static hosts leave that to you. A content editor on top of the site is one answer; let a client edit a static website compares the options.

Finally, look for a history. Being able to go back to Monday’s version after a bad change is worth more than any feature on a pricing page.

Where heyweb fits

heyweb is a static host made for the coding agent way. You paste one sentence into Claude Code, Codex or Cursor in the folder of your site, the agent installs the heyweb program, you confirm once in your browser, and the site is online at an address like your-site.heyweb.page with HTTPS. Every version is kept and can be undone.

Your client’s own domain and the chat in which a client changes texts and pictures are in early access. Building and previewing is free; a live site costs $12 per month plus tax. heyweb is not the right choice if your site needs server code, a shop or logins, or if you are happy uploading by hand to a free host.

Common questions

How do I publish a website?

Put the finished files on a host and open the address it gives you. In practice that is one folder with index.html at the top, an upload to a static host and, if you want, your own domain pointed at it.

How do I publish an HTML website?

Put the HTML file, with its styles and pictures, in one folder with index.html at the top. Upload that folder to a static host and open the address it gives you. You need no server software and no database.

How do I publish a website for free?

Many static hosts have a free plan that gives you an address on their domain. Your own domain is almost never free: you rent it by the year from a registrar. Read the free plan’s limits before you hand the address to a client.

Do I need my own domain to publish a website?

No. Every host gives you a working address on its own domain. A domain of your own looks more trustworthy and stays yours if you move to another host later.

How long does it take until the site is live?

On the host’s own address, usually as soon as the upload is done. With your own domain, the DNS change can take from minutes to some hours before every visitor reaches the new site.

Can I move my website to another host later?

Yes, if it is a static site. It is just a folder of files: upload it to the new host, then point your domain there. That is one reason to keep your own copy of the folder.

Keep reading

Publish the next one by saying so.

Add heyweb to your agentSee how it works

Paste this into your agent.

Set up heyweb from app.heyweb.ai/start and put this site online.
  1. Paste it
  2. Connect with your email
  3. Your site is online

Free until a site goes live. Then $12 a month per site, plus tax. How setup works