# How to Upload an Exported Website Over FTP (Step by Step)

> Shared hosting, cPanel and most legacy servers still take FTP. Here is how to get an exported static site onto one without breaking every path in it.

Canonical: https://www.nocodeexport.com/en/blog/deploy-exported-site-ftp
Last updated: 2026-08-26

NoCodeExport Team · Hosting · August 26, 2026 · 5 min read

> **Quick answer**: Unzip the export, connect to your host with FileZilla using the FTP credentials from your hosting panel, then upload the CONTENTS of the export folder — not the folder itself — into public_html. index.html must land directly in public_html, otherwise your homepage will 404.

Netlify and Vercel are the easy answer for a static site, but plenty of people are not moving: the domain is already on a cPanel host, the company pays for the server, or the site has to sit next to something else already running there. All of that is fine — a static export is just files, and FTP moves files.

The one thing that reliably goes wrong is uploading the folder instead of what is inside it. Everything else is mechanical.

## Before you start

You need three things from your hosting panel, usually under **FTP Accounts**:

- **Host** — `ftp.yourdomain.com`, or an IP address
- **Username and password** — the FTP account, not your hosting login
- **Port** — 21 for FTP, 22 for SFTP

**Use SFTP if it is offered.** Plain FTP sends your password in clear text. Most hosts support SFTP on port 22 and it is the same workflow.

You also need an FTP client. [FileZilla](https://filezilla-project.org/) is free and on every platform; Cyberduck and WinSCP are equally fine.

## Step 1 — Unzip and check it works

Unzip the export somewhere you can find it. Before uploading anything, [run it locally](https://www.nocodeexport.com/en/blog/run-exported-site-locally) and click through it.

This is worth the two minutes. A broken link is far easier to diagnose on `localhost` than after it is live and you are guessing whether the problem is the export or the server.

## Step 2 — Connect

Open FileZilla and fill in the Quickconnect bar:

```
Host:     sftp://ftp.yourdomain.com
Username: your-ftp-user
Password: your-ftp-password
Port:     22
```

The `sftp://` prefix matters — without it FileZilla uses plain FTP regardless of the port.

Two panes appear. Left is your computer, right is the server.

## Step 3 — Find the web root

On the server side, look for one of these:

- `public_html` — cPanel, most shared hosts
- `www` — some providers
- `htdocs` — XAMPP and older setups
- `httpdocs` — Plesk

That directory is what visitors see at your domain. If you land somewhere containing `logs`, `tmp` and `public_html` side by side, you are one level too high — go into `public_html`.

## Step 4 — Upload the contents, not the folder

**This is the step that goes wrong.**

Your unzipped export probably looks like:

```
yoursite-export/
├── index.html
├── about/
├── contact/
├── assets/
└── README.md
```

Open `yoursite-export` on the left, select everything **inside** it, and drag that into `public_html`.

If you drag the `yoursite-export` folder itself, your site ends up at `yourdomain.com/yoursite-export/` and your homepage 404s. When you are done, `public_html/index.html` must exist. If it is at `public_html/yoursite-export/index.html`, move it up a level.

You can skip `README.md` — it is documentation for you, not part of the site. Harmless if it stays.

Large exports take a while. FileZilla's transfer queue shows progress; leave it running.

## Step 5 — Check it

Open your domain. The homepage should appear. Then:

- **Click through the nav** — internal links are relative, so they should resolve without you configuring anything
- **Open DevTools → Network and look for 404s** — a missing asset is nearly always a partial upload; re-upload that folder
- **Check a deep page directly**, e.g. `yourdomain.com/about/`. If the homepage works and deep pages 404, see below.

## Things that go wrong on shared hosting

### Deep pages 404 but the homepage works

Your export uses directory-style URLs (`/about/index.html` served at `/about/`). Apache does this by default via `DirectoryIndex`, but some hosts disable it. Add a `.htaccess` in `public_html`:

```apache
DirectoryIndex index.html
Options +FollowSymLinks
```

On nginx you cannot fix this from a file — ask support to enable `index index.html;` for the directory.

### A blank page with module errors

The server is sending `.mjs` files as the wrong content type, so the browser refuses to execute them. Add to `.htaccess`:

```apache
AddType text/javascript .mjs
```

Same root cause as the local `file://` problem, different layer.

### Fonts or images missing

On the free plan, assets are hotlinked to the original platform CDN rather than bundled. They will load as long as the visitor is online and the original site still exists. If you need everything self-contained on your own server, use the download-assets option so the ZIP carries the files.

### The old site is still showing

Browser cache, or your host's cache. Hard-refresh first (`Cmd+Shift+R` / `Ctrl+F5`), then look for a cache-purge control in your hosting panel. Cloudflare in front of the domain needs its own purge.

### Permission errors

Files should be `644` and directories `755`. FileZilla can set this: select everything, right-click, **File permissions**, tick *Recurse into subdirectories*.

## Keeping it updated

FTP has no version control, so re-uploading after every content change gets old quickly. Two ways to make it less painful:

**Sync instead of re-uploading.** FileZilla's directory comparison highlights what differs so you only push changed files.

**Automate it.** If your host supports SSH, `rsync` is a single command:

```bash
rsync -avz --delete ./yoursite-export/ user@yourdomain.com:~/public_html/
```

`--delete` removes server files that no longer exist locally, which keeps things clean — and will delete anything else living in `public_html`, so check before running it.

If you find yourself doing this weekly, that is a reasonable signal to move to a host with Git deploys. [Free static hosting options](https://www.nocodeexport.com/en/blog/how-to-host-static-html-website-for-free) covers what that would look like.

## Related

- [Run your exported site locally first](https://www.nocodeexport.com/en/blog/run-exported-site-locally)
- [Host a static HTML website for free](https://www.nocodeexport.com/en/blog/how-to-host-static-html-website-for-free)
- [Export Webflow to HTML](https://www.nocodeexport.com/en/webflow) · [Export Framer to HTML](https://www.nocodeexport.com/en/framer) · [Export Wix to HTML](https://www.nocodeexport.com/en/wix-to-html) · [Export Squarespace to HTML](https://www.nocodeexport.com/en/squarespace)

## Frequently Asked Questions

### Should I use FTP or SFTP?

SFTP whenever your host offers it. Plain FTP sends your password in clear text. Most hosts support SFTP on port 22 and the workflow in FileZilla is identical, but you must type the sftp:// prefix — without it FileZilla uses plain FTP regardless of the port.

### Where exactly do I upload the files?

Into the web root, which is public_html on cPanel and most shared hosts, www on some providers, htdocs on XAMPP, or httpdocs on Plesk. If you can see logs, tmp and public_html side by side, you are one level too high.

### Why does my homepage 404 after uploading everything?

You almost certainly uploaded the export folder instead of its contents, so the site now lives at yourdomain.com/folder-name/. Open the folder locally, select everything inside it, and move that up so public_html/index.html exists directly.

### The homepage works but deep pages 404. How do I fix it?

Your export uses directory-style URLs, where /about/ is served from /about/index.html. Apache does this by default but some hosts disable it. Add a .htaccess in public_html containing DirectoryIndex index.html. On nginx you cannot fix this from a file and need support to enable it.

### A page loads blank and the console complains about modules.

The server is sending .mjs files as the wrong content type. Add AddType text/javascript .mjs to your .htaccess. It is the same root cause as the blank page you get opening the export locally with file://, just at the server layer.

### Can I automate FTP uploads instead of re-uploading every time?

Yes. FileZilla's directory comparison highlights only the files that differ, and if your host allows SSH you can sync in one command with rsync -avz --delete ./export/ user@host:~/public_html/. Note that --delete removes anything on the server that is not in your local folder.

## Related

- [Exported Site Shows a Blank Page? Run It Locally the Right Way](https://www.nocodeexport.com/en/blog/run-exported-site-locally): Double-clicking index.html gives a blank page and module errors. Why file:// breaks a modern export, and the one-line fix on macOS, Windows and Linux.
- [How to Download an Entire Website](https://www.nocodeexport.com/en/blog/how-to-download-an-entire-website): Five ways to download a whole website for offline use or migration: browser save, wget, HTTrack, desktop apps and rendering exporters, and what each misses.
- [Why HTTrack Breaks on Framer, Webflow and Wix Sites](https://www.nocodeexport.com/en/blog/httrack-no-code-sites): HTTrack saves the HTML the server sent, not the page the browser built. On modern no-code sites those differ: here is exactly what goes missing.
