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.

Import your site free

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

  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 ChatGPTOn your PageHub site
Each .html fileA page you can edit by clicking on it
Links between the filesLinks between pages, and the old .html addresses redirect
Styles, fonts and imagesThe same look, with images in your media library
A form that posts to a script, such as contact.phpA form that saves every submission to your account
Your JavaScriptKept 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.

Questions about hosting a ChatGPT site

What people ask before they move a ChatGPT site to their own domain.

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.

Put your ChatGPT site on your domain

Free plan, 1 site on your own domain. No credit card.

Import your site

Built 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.