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.
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.
- In a chat, ask ChatGPT to put every page of the site in one .zip file you can download.
- In canvas, copy the code into a plain text file and save it as index.html.
- Downloaded the pages one at a time? Put them in one folder. A home page saved as index (4).html is fine.
- In Codex, zip the project folder. Leave out node_modules.
Upload it to PageHub
- Open the import page and sign in to PageHub (free, no credit card).
- Drop the folder, the .zip, or a single .html file.
- Each .html file becomes a page. Links between the files become links between the pages.
- 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
- Open the Domains page for your site and enter your domain.
- Add the DNS records PageHub shows you where you bought the domain.
- SSL is issued automatically, usually within a few minutes of DNS being in place.
- Publish. Connecting a domain doesn't publish the site by itself.
Questions about hosting a ChatGPT site
What people ask before they move a ChatGPT site to their own domain.
Put your ChatGPT site on your domain
Free plan, 1 site on your own domain. No credit card.
Import your siteBuilt somewhere else? See how to move a site from Lovable, Bolt, v0 or Figma Make.
ChatGPT and Codex are trademarks of OpenAI. PageHub isn't affiliated with or endorsed by OpenAI.