Publish a website ChatGPT or Claude made
You asked an AI assistant for a website and it gave you HTML. It looks right in the preview, but it isn't online yet: to share it, the file needs a home on the web. Here's how to do that in a few minutes, and how to let the assistant publish its own changes from then on.
1. Get the files out of the chat
What the assistant made is a web page written in HTML, usually one file with the styles and scripts inside it.
- One file: copy the whole code block (most assistants show a copy button on it) into a plain
text editor and save it as
index.html. On a Mac, use TextEdit in plain text mode (Format → Make Plain Text); on Windows, Notepad. If the assistant offers a download button, use that instead. - Several files (pages, a stylesheet, images): ask the assistant to list the file names, save
each one with exactly that name in one folder, and call the home page
index.html. You can also ask it for a .zip of the folder if it can make files.
Open index.html in your browser to check it looks the same as in the chat.
2. Put it online
- Create a free Pagehaus site. The name you pick becomes its address, for example
https://yoursite.pagehaus.site/. - On your site's Files tab, drag your
index.html(or the folder, or the .zip) onto the page. It replaces the starter page. - Open your address. That's it: the page is live, with HTTPS, and you can share the link.
To change a word later, edit the file right on the Files tab, with a live preview. Every change is saved in version history, so you can always go back.
3. Or let the assistant publish it for you
Pagehaus works with AI assistants through MCP, the standard way to connect them to other services. Once connected, you can say "put this page on my Pagehaus site" or "change the opening hours on my site" and the assistant writes the files itself, with no copying and pasting.
- Claude: Pagehaus is in Claude's connector directory. Open it there and click Connect.
- ChatGPT: add Pagehaus as a custom connector in developer mode.
- Claude Code, Codex, Cursor or VS Code: connect with a token, or give the agent its own SFTP login.
You choose whether the assistant can use all your sites or just one, and you can disconnect it at any time. The steps for each app are in Connect an AI assistant.
Things the AI might have added that need a server
- A contact form: generated forms often post to nowhere, or to a PHP file that won't run. On
Pagehaus, set the form's
actionto/_form/contactandmethodtopost, and messages are emailed to you. See contact forms, or ask the assistant to do it for you. - Images from placeholder sites: swap them for your own photos. Upload them next to
index.htmland ask the assistant to use their file names. - A page that calls an AI or a database with a secret key in the code: don't publish that. Anyone can read the code of a web page, key included.
Your own domain
On a Personal or Pro plan, add a domain like yourbakery.com under the Domains tab
and set the DNS records it shows. HTTPS is set up automatically. See custom
domains.