How to Publish a Website: Step-by-Step Guide (2026)

By the bootstrap.build team · 13 min read · Published

To publish a website, you put your site’s files on a web host, point a domain name at that host with DNS records, and make sure it loads over HTTPS. That is the whole job, whether the site came from a builder, a folder of HTML, an AI tool, or WordPress. This guide walks through each step in order, for first-time site owners and designers who have a finished site and want it live; every host detail and doc link was checked in November 2026.

How to publish a website: files, host, domain, DNS and HTTPS, then a launch checklist

TL;DR

  • Publishing = files + host + domain + DNS + HTTPS. The host stores and serves the files, the domain is the address, DNS connects the two, and HTTPS encrypts the connection.
  • Builder sites (Wix, Google Sites, Squarespace): press Publish. Hosting is included; you only add a domain.
  • A folder of HTML, CSS, and JS: upload it to a static host. Static.app takes a ZIP by drag and drop and includes custom domains, SSL, and forms from $5 a month billed yearly ($6 month to month).
  • Git users: connect a repository to Netlify, Cloudflare Pages, or GitHub Pages and every push redeploys.
  • WordPress: needs a host that runs PHP and MySQL or MariaDB, or a conversion to static files.
  • After launch: set titles and meta descriptions, a favicon, a custom 404 page, analytics, and a Search Console property.

What “publishing a website” actually means

People who finish their first site usually ask some version of “I have the files, now what?” Five pieces have to be in place:

  1. Files. HTML pages, CSS, JavaScript, images, and fonts. A builder keeps these for you; otherwise they sit in a folder with an index.html at the top.
  2. A host. A server, usually behind a content delivery network, that sends those files to anyone who asks. MDN describes web hosting as “rented file space on a hosting company’s web server.”
  3. A domain name. The address people type, such as example.com, rented yearly from a registrar.
  4. DNS records. Entries that tell the internet which server answers for your domain. Your host gives you either an IP address or its own subdomain (for example my-site.pages.dev), and you add an A record or a CNAME record at your DNS provider, as MDN’s publishing guide explains.
  5. HTTPS. A TLS certificate so browsers show the padlock instead of a “Not secure” warning. Most hosts now issue one automatically.

Every host gives you a working address on its own subdomain the moment you upload. The domain, DNS, and HTTPS steps turn that into yourname.com.

Step 1: Pick your path based on what you have

You built it in a website builder

Wix, Google Sites, Squarespace, and similar builders host the site for you, so publishing is a button.

  • Wix: click Publish in the editor. Wix’s help center notes that “Clicking Save won’t make your changes live,” so publish after every edit. The site goes live at a free siteprefix.wixsite.com/site-name address until you connect a domain.
  • Google Sites: open the site, click Publish, enter a web address, and click Publish again. Google’s help page links to a separate guide for using a custom domain.

For builder sites, skip Step 3. You still need Steps 2, 4, and 6.

You have a folder of HTML, CSS, and JavaScript

A template you edited, a site you coded, or output from a static site generator. A static site needs no database or server code, which keeps hosting simple and cheap. If you are not sure whether your site is static, our explainer on static vs dynamic websites covers the difference.

Before uploading, make sure index.html sits at the top level of the folder, and that image and link paths are relative (not file:/// or C:\ paths from your computer). If you used a framework such as Astro, Hugo, or Vite, run its build command and upload the output folder, usually dist, build, or public.

An AI tool or design app generated it

AI builders and design tools either host the project themselves or let you export files. Exported files are a static folder, so treat them like the case above. AI coding agents can also publish directly to some hosts; Static.app, for example, has an MCP connector that publishes from an AI agent to your account. Our guide to hosting an AI-generated website covers export steps for the popular tools.

It is a WordPress site

WordPress is a dynamic application: WordPress.org recommends PHP 8.3 or greater, MySQL 8.4 or greater (or MariaDB 10.11 or greater), and HTTPS support. You need a host that runs PHP and a database. Three choices:

  • WordPress.com or managed WordPress hosting, where the host runs the software for you.
  • Shared or VPS hosting with a one-click installer.
  • Convert to static. If the site is mostly pages and posts with no logins or store, export it to HTML and host the files. Static.app has a website migration feature that copies a live site’s pages and assets into a new static site from its URL. Comments, site search, and plugins that run on the server will not carry over, so plan replacements.

Free options for both static and WordPress sites are compared in our guide on how to host a website for free.

Step 2: Get a domain name

A domain is rented from a registrar for one or more years and renewed before it expires. Before you register:

  • Cost. MDN puts a typical domain at about $5 to $15 per year, and notes that prices vary by top-level domain: .io and .ai can cost much more than .com.
  • Renewal price. MDN also warns that some registrars offer a promotional first-year price that goes up at renewal. Check the renewal price, not just the first-year price.
  • Where to buy. Any accredited registrar works. Buying from your host can remove the DNS step, because the host writes the records for you.
  • Email. A domain does not include an inbox; set up email or forwarding separately.

Static.app domain search page, November 2026

On Static.app, a domain bought inside the dashboard is connected to the site you pick, with DNS records written and the SSL certificate issued automatically. Email forwarding (for addresses like hello@) and unlimited subdomains are included. If you already own a domain elsewhere, you can keep it there and add DNS records, or transfer it.

Step 3: Upload or deploy your files

Hosts accept files in three main ways.

Drag and drop

The fastest route for a finished folder: drop a ZIP or the folder, and the host gives you a live HTTPS address.

Static.app homepage, November 2026

  1. Static.app: sign up, drag in a ZIP of your site, and it goes live on a free *.static.domains subdomain with SSL. Add the static-form attribute to an existing HTML form and submissions collect in the dashboard, with no form service to configure. A Mac desktop app publishes a local folder and re-publishes on every save. Plans: Starter is $5/month billed yearly ($60 a year, or $6 month to month) for 2 websites, 500 MB, custom domains, forms, analytics and unlimited traffic. Medium is $10/month billed yearly ($12 monthly) for 7 sites and 3 GB, and Large is $15/month billed yearly ($18 monthly) for 30 sites and 10 GB. There is a 7-day free trial (1 site, 50 MB, free subdomain, no credit card) but no permanent free plan.
  2. Cloudflare Pages Direct Upload: in the dashboard, create a Pages project, name it, and drag in a ZIP or a single folder. The site is served from <project-name>.pages.dev. Cloudflare’s docs warn that a Direct Upload project cannot be switched to Git integration later; you would create a new project.
  3. Netlify Drop: drag a project folder onto Netlify’s drop page to get a *.netlify.app address.

Deploy from Git

Connect a Git repository to the host and every push publishes a new version. This suits sites that change often or have a build step.

  • Netlify and Cloudflare Pages connect to GitHub or GitLab repositories (Netlify supports other Git providers too), run your build command, and publish the output.
  • GitHub Pages publishes from a branch or a GitHub Actions workflow. GitHub’s limits page sets a 1 GB maximum published size, a soft bandwidth limit of 100 GB per month, and a soft limit of 10 builds per hour; it also says Pages is not meant for online businesses or ecommerce.
  • Static.app has a GitHub Action: add an API key to your repository secrets, add a workflow file, and each push builds and deploys. It does not have a repository-connected build pipeline in the dashboard the way Netlify does.

For a side-by-side look at limits and prices on these and other hosts, see our static website hosting comparison.

FTP, SFTP, or rsync

Traditional shared hosting (the kind sold with cPanel) usually gives you SFTP credentials: a server address, username, password, and port. MDN’s guide suggests free clients such as FileZilla, WinSCP, and Cyberduck. You connect and drag your files into the web root, often a folder named Public/htdocs per MDN (your host names the exact folder). rsync does the same over SSH from the command line. Use SFTP rather than plain FTP, which sends your password unencrypted.

Step 4: Connect your domain with DNS

A records and CNAME records

  • A record: points a name to an IP address. Example: example.com → 185.199.108.153.
  • CNAME record: points a name to another name. Example: www.example.com → yoursite.netlify.app.
  • Apex vs subdomain. The apex (or root) is the bare example.com; www is a subdomain. Netlify’s docs state that apex domains do not support CNAME records, so the apex needs an A record or a provider-specific ALIAS, ANAME, or flattened CNAME record. Subdomains like www normally use a CNAME.
  • Set up both. Visitors type both example.com and www.example.com. Configure records for both and let the host redirect one to the other.

What common hosts ask for

The host always shows the exact values in its dashboard. Copy them from there, not from a tutorial, because IP addresses can change.

Host Apex domain (example.com) www subdomain Notes from the host’s docs
Static.app A record to the IP shown in the dashboard, plus a TXT verification record A record to the same IP Turn off Cloudflare’s proxy (orange cloud) on the A record
GitHub Pages Four A records (185.199.108.153 to 185.199.111.153) or ALIAS/ANAME CNAME to username.github.io Do not include the repository name in the CNAME
Netlify ALIAS, ANAME, or flattened CNAME (recommended), or an A record fallback CNAME to yoursite.netlify.app Adding the apex adds www too, and vice versa
Cloudflare Pages Domain must be a Cloudflare zone (change nameservers) CNAME to yoursite.pages.dev Add the domain in the Pages dashboard first, or the CNAME returns a 522 error

For a full walkthrough of one host’s records, our GitHub Pages custom domain guide goes record by record.

How long DNS takes

DNS changes are cached around the world, so a new record takes time to reach everyone. The hosts’ own estimates vary: Static.app’s help center says up to 5 minutes and sometimes a few hours, GitHub says changes can take up to 24 hours, Netlify says it may take a full day, and Wix says up to 48 hours for a connected domain. To check progress, run dig example.com or use Google’s Dig tool, as Netlify’s troubleshooting page suggests. If a record is still wrong after a day, look for an old conflicting record at the same name.

Step 5: Turn on HTTPS

Modern hosts request a certificate for you once DNS points at them, usually from Let’s Encrypt, a free and automated certificate authority. It proves you control the domain by checking a DNS record or a file at a known URL, which is why HTTPS only works after Step 4.

What to check:

  • The certificate covers both names. https://example.com and https://www.example.com should both load without a warning.
  • HTTP redirects to HTTPS. On GitHub Pages, tick Enforce HTTPS in the repository’s Pages settings; GitHub notes the option can take up to 24 hours to become available after you add the domain.
  • CAA records. If your domain has CAA records, they must allow your host’s certificate authority. Cloudflare’s custom domain docs call this out as a common reason a certificate fails to issue.
  • Mixed content. A missing padlock usually means an image, script, or font still loads over http://.

Static.app, Netlify, Cloudflare Pages, and GitHub Pages all issue and renew certificates automatically.

Step 6: Run a launch checklist

These checks make a live site findable and measurable.

  1. Page titles. Google asks that every page have a <title> element with “descriptive and concise” text that differs from page to page.
  2. Meta descriptions. Google says it sometimes uses <meta name="description"> for the search snippet and recommends a unique description for each page.
  3. Favicon. Add <link rel="icon" href="/favicon.ico"> to the home page’s <head>. Google’s favicon documentation says this makes the site eligible for a favicon in search results.
  4. Custom 404 page. Make sure missing pages return a real 404 status, not a 200 with an error message, which Google treats as a soft 404. On Netlify, a 404.html file at the root is used automatically; GitHub Pages also uses 404.html (or 404.md); on Static.app you assign any page as the 404 in Page Settings, and it is served with a proper 404 status.
  5. Forms. Submit your contact form yourself and confirm the message arrives. Static hosts need a form feature or a form service for this.
  6. Analytics. Turn on your host’s analytics or add a tool of your choice. Static.app’s built-in analytics runs without a script or cookies, so there is no consent banner to add for it.
  7. Search Console. Add the site in Google Search Console. A Domain property covers every subdomain and protocol and is verified with a DNS record; a URL-prefix property covers one exact prefix and offers more verification methods. Data starts to appear in a few days.
  8. Sitemap. Google’s Sitemaps report notes that a site of about 500 pages or fewer, where every page is reachable by links from the home page, probably does not need a sitemap; requesting indexing of the home page is enough. For larger sites, create a sitemap.xml at the root with full absolute URLs (Google’s limit is 50,000 URLs or 50 MB per file) and submit it in the Sitemaps report.
  9. Phone test. Open the site on a phone and in a private window to catch broken paths.

Step 7: Keep the site updated

  • Content updates. On a builder, edit and press Publish. On a static host, re-upload the changed files or the whole ZIP, or push to Git and let the host redeploy. Keep a copy of the source outside the host.
  • Domain renewal. Turn on auto-renew at your registrar and keep the payment card current. An expired domain takes the site and any email on it offline. Our guide to domain monitoring covers expiry alerts.
  • Certificates and dependencies. Automatic certificates renew on their own as long as DNS still points at the host. WordPress and other dynamic sites also need regular core, theme, and plugin updates, plus backups; static files do not.

Moving hosts later is Steps 3 and 4 again: upload to the new host, then change the DNS records.

FAQ

How do I publish a website for the first time?

Get your site files ready (or finish it in a builder), upload them to a host, register a domain, add the DNS records the host gives you, and wait for HTTPS to switch on. For a folder of HTML files, a drag-and-drop host such as Static.app or Cloudflare Pages puts it online in minutes on a free subdomain before you connect a domain.

Do I need to buy a domain to publish a website?

No. Every host gives you a free address on its own subdomain, such as .static.domains, .pages.dev, .netlify.app, or .github.io. A domain of your own costs about $5 to $15 a year for common endings, according to MDN, and it stays yours if you change hosts.

How long does it take for a website to go live?

The upload takes seconds to minutes. A custom domain depends on DNS: host estimates range from minutes (Static.app) to 24 hours (GitHub) or 48 hours (Wix). HTTPS follows once DNS points at the host.

What is the difference between hosting and a domain?

Hosting is where the files are served from; the domain is the address that points to it. If you buy them from different companies, connect them with A or CNAME records at your DNS provider.

Why does my site show “Not secure” after publishing?

Either the certificate has not been issued yet (usually because DNS is still propagating), or the page loads some resources over http://. Wait for DNS, confirm the host shows the certificate as active, then fix any http:// links to images, scripts, or fonts.

Build your Bootstrap theme

Design a custom Bootstrap 5 theme visually with a live preview, then export clean Sass or CSS.

Open the Builder