# How to host a website you made with ChatGPT

ChatGPT gives you code, not a live site. Upload the files to PageHub and every page opens in a visual editor, ready to publish on your own domain with HTTPS. If you want to host a website made with ChatGPT, put a ChatGPT website online, host an HTML file ChatGPT made, or publish a website ChatGPT built, this page covers it.

## The short answer

- ChatGPT writes the code, but it doesn't put a site on your own domain.
- Download the files, then upload the folder, the .zip or a single .html file to PageHub.
- Each page opens in a visual editor, where anyone can change text and images without code.
- Attach your domain, and SSL is issued automatically. The free plan includes 1 published site on your own domain.
- Only have the chat? Paste your prompt instead, and PageHub's AI builds the site from it with your 1,000 free credits.

## Why move your site to PageHub

ChatGPT is a fast way to get something built. PageHub is where a business site lives after that.

- **Anyone can make changes.** Click any text or image and change it. No prompts, no code, and no waiting on whoever built the site.
- **Your content stays in one place.** Team, listings, menus and products live in collections. Change a row and every page showing it updates.
- **The business parts are built in.** Forms, member sign-in and a store come with the site, so there's no backend to set up or look after.
- **It's easy to hand over.** Give a client or teammate the visual editor. They never need to open an AI tool to keep the site current.

## Get your code out of ChatGPT

ChatGPT hands you code in the chat, in canvas, as files to download, or as a Codex project. Any of them works.

1. In a chat, ask ChatGPT to put every page of the site in one .zip file you can download.
2. In canvas, copy the code into a plain text file and save it as index.html.
3. Downloaded the pages one at a time? Put them in one folder. A home page saved as index (4).html is fine.
4. In Codex, zip the project folder. Leave out node_modules.

## Upload it to PageHub

Start at `/start/import/html`.

1. Open the import page and sign in to PageHub (free, no credit card).
2. Drop the folder, the .zip, or a single .html file.
3. Each .html file becomes a page. Links between the files become links between the pages.
4. Pick the pages you want and click Import. The site opens in the visual editor as a draft.

## What you get

| In the files from ChatGPT | On your PageHub site |
|---|---|
| Each .html file | A page you can edit by clicking on it |
| Links between the files | Links between pages, and the old .html addresses redirect |
| Styles, fonts and images | The same look, with images in your media library |
| A form that posts to a script, such as contact.php | A form that saves every submission to your account |
| Your JavaScript | Kept as written, and it runs on the published site |

ChatGPT often writes a whole site as one file that shows one section at a time. PageHub splits a file like that into one page per section, with working links between them.

## Put it on your domain with HTTPS

1. Open the Domains page for your site and enter your domain.
2. Add the DNS records PageHub shows you where you bought the domain.
3. SSL is issued automatically, usually within a few minutes of DNS being in place.
4. Publish. Connecting a domain doesn't publish the site by itself.

## FAQ

### Can ChatGPT host my website?
No. ChatGPT writes the code and can preview it in canvas, but it doesn't put a site on your own domain. For that you need a host. PageHub hosts the site and also gives you a visual editor, so changing it later doesn't need code or prompts.

### Do I need to know how to code?
No. Download what ChatGPT gave you, drop it on the import page, and every page opens in the visual editor. Click any text or image to change it.

### ChatGPT gave me one long file. What happens to it?
A file that shows one section at a time, with a menu that switches between them, is split into one page per section with working links. An ordinary long page stays one page.

### My file is called index (4).html. Does that matter?
No. When there's no index.html, PageHub uses a renamed one such as index (4).html as the home page. You can also pick a different home page before you import.

### Will my buttons and scripts still work?
Your JavaScript is kept as written and runs on the preview and the published site. It doesn't run inside the editor, so check it on the preview.

### Will my contact form work?
A form that posts to a script, such as contact.php, saves every submission to your account instead. A form ChatGPT wrote without anywhere to send it can be swapped for a PageHub form in the editor, which saves submissions and emails you.

### Can I keep editing with ChatGPT after I import?
Yes. Add PageHub to ChatGPT as a plugin and ask for changes in a chat. They land in a draft you review before publishing. Or edit by hand in the visual editor.

### Does PageHub keep all my pages?
Yes, up to your plan's limit per import: 5 pages on Free, 50 on Pro, 200 on Business and 1,000 on Agency.

### Is it free?
Importing works on every plan. The free plan includes 1 published site on a domain you own, with SSL and no credit card. You buy the domain from a registrar. Pro is $7 a month per site.

### Does the import use AI on my code?
No. The import is a fixed conversion with no AI, so it uses no credits.

ChatGPT and Codex are trademarks of OpenAI. PageHub isn't affiliated with or endorsed by OpenAI.
