OxyPages

How To Publish A Website: Every Route, Start To Finish

How To Publish A Website: Every Route, Start To Finish

How to publish a website when you have an HTML file, a builder, WordPress or a React app: the right route for each, with real costs, the domain and fixes.

The OxyPages Team · · 9 min read

You've got something that looks like a website. Maybe it's a file ChatGPT handed you, a Wix draft you've been tweaking for a month, or a React app that runs fine on your laptop. Now you want other people to see it, and every guide you open assumes you're holding something different.

That's the real reason this feels confusing. There isn't one way to publish a website. There are about five, and the thing you already have picks the route for you.

Get the route right and going live takes two minutes to an afternoon. Get it wrong and you end up paying monthly for a server that runs PHP so you can upload one HTML file, or trying to drag a Squarespace site somewhere it can't go.

So this post starts with the decision, then walks each route: what it costs as of November 2026, how long it takes, adding your own domain, proving the site is live for everyone, and what to do when it isn't.

TL;DR: What you have decides the route. An HTML file, a folder or an AI-made page goes on a static host by drag and drop, usually free and live in minutes. A Wix or Squarespace site is published from inside the builder and can't move out. WordPress needs hosting that runs PHP and a database. A React or Vite app gets built first, and you publish the dist folder it produces. Then point a domain at it, wait for the free HTTPS certificate, and check it on a phone using mobile data, not your own laptop.

What Do You Have? That Decides How You Publish A Website

Look at what's in front of you and pick the line that matches. Each one has a different best route.

  1. One HTML file, a folder of files, or a ZIP. A static host. Drag it in, get a link. This covers most AI-made pages too, and the four steps to host a static website are the same whatever made the files.
  2. A page or app from an AI builder like Lovable, Bolt or v0. If you can download it as HTML or a built folder, treat it like line 1. If it's still a live project with a database behind it, publish it from the builder.
  3. A site in Wix, Squarespace or another builder. You publish from inside the builder. There's no export that keeps it working elsewhere.
  4. A WordPress site, or a plan to build one. You need hosting that runs PHP and MySQL, or WordPress.com.
  5. A React, Vue or Vite project. Run the build, then publish the folder it outputs. Or connect the repository to a host that builds it for you.

Not sure which you have? Open the folder. If you see index.html and no .php files, you're on line 1. If you see package.json, you're on line 5.

Every Route Compared: Time, Cost And Skill

Every Route Compared: Time, Cost And Skill - OxyPages

Here's every realistic option side by side, with prices checked on each vendor's own page on 27 November 2026.

RouteTime to a live linkCostSkill neededGood for
Netlify Drop2 minutesFree plan, 300 credits a monthNone to drop. An account to keep it publicA folder you'll later connect to Git
Cloudflare Pages10 minutes the first timeFree, 500 builds a monthComfortable with a dashboardA static site you want free for years
GitHub Pages30 to 60 minutesFree with a public repositoryBasic GitDocs, portfolios and projects already on GitHub
Wix or SquarespaceAn evening to build, one click to publishWix from $17 a month, Squarespace from $19 a month, billed annuallyNoneBuilding from scratch with no code at all
Shared cPanel hostingAn hour or twoBluehost Starter $3.99 a month on a 3-year term, then $9.99FTP or a control panelWordPress and PHP sites
OxyPagesUnder a minuteFree for 1 personal site. Lite $4 / month billed annually for a custom domain and commercial useNoneHTML, folders, ZIPs and built apps, no Git needed

Two things the table can't show. Wix has a free plan, but it carries Wix ads and a wixsite.com address. Squarespace has a 14-day trial instead, and annual plans include the first year of a domain.

GitHub Pages also has a rule: GitHub says it isn't meant to host a free site for a business, a shop or anything mainly used for commercial transactions.

Route 1: An HTML File, A Folder Or An AI-Made Page

This is the shortest route there is. A static host stores your files and hands them to anyone who asks, so there's nothing to install and nothing to configure.

Here's how it goes for a choir secretary with a concert page ChatGPT wrote, saved as concert.html with two photos beside it:

  1. Put everything in one folder and rename the page index.html. That's the file a host shows at the bare address.
  2. Open the page from that folder on your own computer first. If the photos load here, the paths are right.
  3. Drag the whole folder onto a drag-and-drop host. Not the single file, or the photos arrive broken.
  4. Copy the link it gives you and send it to yourself on your phone.

That's four steps and about two minutes. The details that trip people up, like a ZIP with a folder inside it or a capital letter in a filename, are covered in how to host an HTML file without a build step.

One honest warning about no-account drops. Every one of them is temporary until you sign up. Netlify Drop protects an unclaimed site with a temporary password, so other people can't see it yet. Cloudflare Drop, launched in July 2026, keeps a drop for 60 minutes unless you claim it. OxyPages keeps the link for 30 minutes, and a free account with no card keeps it for good.

Route 2: A Site Builder Like Wix Or Squarespace

If you built it in a builder, you publish it in the builder. There's a Publish button in the top corner of the editor, and that's the whole process.

The catch comes later. The site lives only as long as the subscription, and you can't take it with you. Neither Wix nor Squarespace gives you a working copy of your site's code to move to another host, so switching later means rebuilding.

Builders still make sense when you don't have a site yet and don't want to touch code. You pay for the editor, templates and hosting in one bill, and for many small businesses that's a fair trade.

If you already have HTML, a builder is the wrong tool. You'd be paying for an editor to recreate something you've got.

Route 3: WordPress

WordPress is software that runs on a server, so it needs hosting that runs PHP and a database. WordPress itself recommends PHP 8.3 or newer and MySQL 8.4 or MariaDB 10.11 or newer.

You have two ways in:

  • WordPress.com hosts it for you. The free plan shows WordPress.com ads to your visitors. Paid plans start at $4 a month billed yearly, and as of November 2026 every paid plan can install plugins.
  • Shared cPanel hosting with a one-click WordPress installer. Prices start low and jump at renewal: Bluehost's Starter plan is $3.99 a month on a 36-month term and renews at $9.99 a month.

Static hosts can't run WordPress at all, OxyPages included. If your site needs to stay WordPress, pick one of the two options above.

Route 4: A React Or Vite App

A React app gets built first, and the folder the build produces is what you publish.

  1. Run the build. In a Vite project that's npm run build in the project folder.
  2. Find the output folder. Vite writes it to dist. Create React App used build.
  3. Publish that folder on any static host, exactly like Route 1.
  4. Test a page that isn't the homepage by refreshing it. Single-page apps often show a 404 on refresh until the host or the router is set up for it.

Or connect the repository to Netlify, Vercel, Cloudflare Pages or GitHub Pages, so every push rebuilds the site. More setup once, less work after.

The two things that break most often, a blank page and missing assets, both come from the base path. deploying a Vite app from its dist folder walks through both fixes.

Getting Your Own Domain And HTTPS

A free subdomain is fine for a draft. For anything with your name or your business on it, buy a domain, which costs about $12 a year for a .com at a registrar that sells near cost.

The steps are the same on every host:

  1. Buy the domain from any registrar.
  2. Add it to your host's settings, which tells you the DNS record to create.
  3. Create that record at your registrar, usually a CNAME for www.
  4. Wait. Most changes show up within an hour, though some take longer.

HTTPS comes free on every host in the table above. The certificate is issued automatically once the DNS points at the host, usually within minutes. If the browser says "Not secure" in the first half hour, it's usually waiting for that, not broken.

The full version, including the apex-or-www question that trips most people, is in how to connect a domain to your website.

How Do You Check The Site Is Actually Live?

How Do You Check The Site Is Actually Live? - OxyPages

A site is live when a stranger on another network can open it. Your own browser has cached half the files and will happily show you a version nobody else can see.

Run these five checks before you tell anyone:

  • Open it on your phone, with Wi-Fi off. Mobile data is a different network and a different cache.
  • Open it in a private browser window while logged out of the host. Unclaimed drops and password-protected sites fail this test.
  • Send the link to one friend and ask what they see.
  • Look at the address bar. It should show your domain, a padlock and https://, not a preview or claim link.
  • Search Google for site:yourdomain.com after a week or two. Google says it can take a few weeks to notice a new site, and Google's guide to getting a site on Google explains how Search Console can speed that up.

Why Publishing Fails, And The Fix For Each

When publishing goes wrong, it's nearly always one of these:

What you seeWhat usually caused itThe fix
The host rejects the upload, or shows a file listNo index.html at the top level, often a folder inside a ZIPZip the files, not the folder around them
The page loads but images are brokenYou uploaded the page without its folder, or a filename's capital letters don't matchUpload the folder and use lowercase filenames
It works for you but friends get a password box or an errorThe drop was never claimed, or the temporary link expiredSign up and claim it, then share the new link
A blank white page after publishing an appYou uploaded the source, not the build, or the base path is wrongRun the build and publish dist
Inner pages 404 when refreshedA single-page app with no file for that routeSet up the host's fallback, or make a real file per page
The domain shows nothing, or "Not secure"DNS hasn't spread yet, or the certificate isn't issuedWait an hour, then check the record matches exactly

What To Do Next

Pick your line from the first list and follow that route only. Ignore advice written for the other four.

On Route 1 or Route 4, a static host is the shortest path and free is enough to start. Don't buy hosting with PHP and email for a folder that needs neither. On Route 3, pay for WordPress hosting and ignore anyone selling you a static host that can't run it.

When the link works on a phone over mobile data, you're done. The domain can come later. If you want a link right now from a file, a folder or a built app, see what the free plan covers and when a paid plan makes sense.

FAQ

How Do I Publish A Website For Free?

Use a static host's free plan if you have HTML or a built app. Netlify, Cloudflare Pages and GitHub Pages all have free plans that include HTTPS and a subdomain, and none needs a card. Builders like Wix and WordPress.com have free plans too, but both show their own ads to your visitors.

Can I Publish A Website Without Knowing How To Code?

Yes. A site builder needs no code at all, and dragging an AI-made HTML file onto a static host needs none either. Code only matters when you want to change something the AI got wrong, and that's usually a word or a link.

How Long Does It Take For A Website To Go Live?

The link itself works within seconds to a few minutes on most hosts. A custom domain usually works within an hour, and its HTTPS certificate follows within minutes of that. Showing up in Google search takes longer, often a few weeks for a brand new site.

Do I Need A Domain To Publish A Website?

No. Every host gives you a free address on its own subdomain, and that's enough for a draft, a class project or a page you're sharing with a few people. Buy a domain when the site represents you or your business, because the address is the first thing people judge.

Try It Now

Still Here? Drop It In.

The whole pitch fits in one sentence: your HTML, on a link, in seconds.

Drag and drop your HTML files, a folder, a ZIP, your app's build folder, a PDF, an image or an MP3

or ·

No account needed. Your unclaimed website stays live for 30 minutes on a free subdomain. Claim it to your account to keep it permanently.

  • No Account Needed
  • Free SSL
  • 30-Minute Unclaimed Link, Claim To Keep It