prompts
Prompts that give you a website that works once it's online
Eight prompts to paste into ChatGPT or Claude so your AI-made site still works online: real pages, small images, a 404 page, a working form, no secrets.
Contents
To get a website from your AI that still works once it is online, ask for real page files instead of pages that switch with JavaScript, small images, simple relative links, a 404 page, a form connected to a form service, and no secret keys. The eight prompts below do exactly that, in ChatGPT, Claude or a coding tool.
Most problems after publishing come from one fact: online, a website is only files. If you still need to choose where those files will live, our guide to getting an AI-made website online on your own domain explains the options first.
Why do AI-made sites break after publishing?
In the chat or the builder's preview, everything works. The tool fills the gaps. Online, a static website is a folder of ready files: pages, pictures and styling. Nothing runs behind it. Four things go wrong most often:
- Pages that switch with JavaScript. Many tools, especially Lovable, Bolt and v0, build a single-page app: one page that swaps its content when you click. Sites from Lovable, Bolt or v0 that switch pages without loading a new page can show "Not found" when a visitor refreshes a subpage. Ask your AI to make every page a real file first.
- Huge images. A photo from a phone is often several megabytes. The page loads slowly, and some hosts limit the size of what you send.
- Missing pieces. Links to files on your own computer, a contact form with no service behind it, no page for wrong addresses.
- Secrets in the files. If the AI put a secret key for a paid service in the code, anyone can read it.
Which prompts give you a site that works online?
Each prompt below is written for how static hosting really works. Replace the parts in square brackets. You can paste them one by one, or combine the ones you need.
Prompt 1: a one-page site that is ready to publish
Use this when you start a new, simple site: a landing page, a wedding page, a page for your work.
Make a one-page website for [what it is for, who it is for]. Give me one file called index.html with the styling inside it, plus a folder called images for photos. Use plain HTML and CSS, and only a little JavaScript if it is really needed. No frameworks, no npm, nothing that has to be built first: I must be able to open index.html by double-clicking it. Add a page title of at most 60 characters, a description of about 150 characters, the language of the page, and the viewport setting for phones. Make the layout work on a phone first. Use only real details I give you; leave a clearly marked [TODO] where you need information.
Prompt 2: a site with several real pages
Use this when you want separate pages, such as Home, About, Prices and Contact.
Make my website with a separate HTML file for every page: index.html (home), about.html, prices.html and contact.html, all in the same folder. Put shared styling in one file called style.css and photos in a folder called images. Link between pages with relative links such as about.html, never with links that start with file:///, C:\ or localhost. Give every page the same menu and footer, its own title and its own description. The site must work without JavaScript to switch pages.
Prompt 3: make the images small
Use this before every publish that adds photos.
List every image in my website with its file size and width in pixels. Convert photos to WebP, at most 1600 pixels wide and under 200 KB each. Logos and icons can be SVG or small PNG. Update every link to the new file names, add width and height to each image, and give every image a short description (alt text). Tell me the total size of the website folder afterwards.
If you replace a photo later, give the new one a new file name, such as team-2027.webp. Browsers and hosts often keep pictures for a while, so a new name makes sure visitors see the new photo at once.
Prompt 4: make subpages refresh-safe
Use this for a site from Lovable, Bolt or v0, or any site where the address changes but the page never reloads. Our help page on pages that show "Not found" after a refresh explains the problem in more detail.
My site switches pages with JavaScript (a single-page app). On simple static hosting, a refresh on a subpage such as /about shows "Not found". Rebuild it so every page is a real HTML file in the finished files: about.html or about/index.html for /about, and so on for every page. Keep the design and content the same, and check that every link between pages still works. If the site uses a login, a database or payments, tell me which features will stop working as plain files. Then list the final files and folders.
If a full rebuild is too much, there is a quick fix you can ask for: addresses with a hash, such as yourname.com/#/about. A refresh always loads the home page file first, so nothing breaks. They look less tidy and search engines handle them less well, so real pages are the better choice. Our article on moving a Lovable, Bolt or v0 site to your own domain covers the rest.
Prompt 5: add a 404 page
Add a file called 404.html at the top level of my website, next to index.html. Use the same menu, styling and footer as the other pages. Say in one friendly sentence that this page does not exist, and add a clear button back to the home page. Use links that start from the top of the site, such as /index.html and /style.css, because this page can be shown at any address.
That last line matters. A 404 page can show up at any address, such as /old/page, so a link like style.css would look in the wrong folder. Links that start with / always start from the top.
Prompt 6: a contact form that really sends
A static site cannot receive form messages by itself. Web3Forms forwards them to your email; its free plan covers 250 messages a month (Web3Forms pricing, checked on 12 November 2026). Our article on adding a contact form to a static website compares free services.
Add a contact form to contact.html using Web3Forms. My access key is [paste the key you got from web3forms.com]. Use fields for name, email and message, a hidden honeypot field and the Web3Forms hCaptcha, and load the Web3Forms script. Show a thank-you message after sending. Under the form, add one sentence about what happens with the data and a link to my privacy statement. Do not ask for passwords, card numbers or bank details.
Prompt 7: check for secrets before you publish
Everything in your website's files can be read by anyone. Run this before every publish.
Search every file of my website for secret keys, passwords, private notes in comments, personal data that should not be public, and files the site does not need (drafts, spreadsheets, backups). Show me what you find with the file and line. If a feature needs a secret key to work, tell me; do not leave the key in the files. Do not delete anything until I say so.
Prompt 8: finished files, no build step
Some tools give you a project instead of a website: a folder with package.json, src and settings files. That project first has to be built into finished files by a program. Ask for files that are already finished.
I want to publish this website as plain files, without a build step. Give me the finished website: a folder with index.html at the top, the other pages as HTML files, the styling and scripts, and the images. If this is a React or Vite project, tell me how to get the finished folder (often called dist) and which files from it I need. List the final folder so I can check it.
What does a fix look like? Before and after
These are typical changes the prompts make. The examples are made up to show the pattern.
| Before (breaks online) | After (works online) | |
|---|---|---|
| A link to the About page | JavaScript swaps the content at /about | A real file about.html |
| A photo | photo.png, 6 MB, 4000 pixels wide | images/photo.webp, 180 KB, 1600 pixels wide |
| An image link | C:\Users\you\Desktop\photo.jpg | images/photo.webp |
| The page title | Document | Bike repairs in Utrecht, open on Saturdays |
| The contact form | Shows "Thanks!" and sends nothing | Sends to Web3Forms, which emails you |
| A wrong address | A bare "Not found" | Your own 404 page with a link home |
| A secret key | Written in script.js | Not in the files at all |
How do you test the site before you publish?
- Double-click index.html. The site opens in your browser from your own computer.
- Click every link and button. Relative links such as about.html work here too.
- Make the browser window very narrow to see the phone layout.
- Check the size of the folder. From a chat assistant, keep it small.
- Run prompt 7 one last time for secrets.
- After publishing, open a subpage on the real address and press refresh.
Our 12-point checklist before publishing goes through every check in more detail, with a prompt for each.
Where does UpSheGoes fit?
Once your files pass these prompts, they are ready for any host. With UpSheGoes, the same assistant that made the site puts it online: you connect it once, and it publishes the site and helps you connect your domain. How it works shows the four steps. The plan is €8.47 incl. 21% VAT a month (€7.00 excl. VAT).
A few things to know. From a chat assistant, one publish can be about 1 MB. That is plenty for text and a few compressed photos, not for a large photo gallery. Our help page on a site that is too big shows what to do. UpSheGoes serves about.html at /about, uses your 404.html for wrong addresses, and keeps your last 10 versions. UpSheGoes is not in the ChatGPT or Claude app directories yet. You add it once by pasting one address. Whether you can add a custom connector depends on your plan with them.
Sources
- Web3Forms, Pricing, checked on 12 November 2026.
Questions
Fair questions, straight answers
Why does my website work in the preview but not online?
The preview runs inside the AI tool, which fills gaps for you. Online, your site is only files. Pages that switch with JavaScript, links to files on your own computer, forms with no service behind them and large photos all show up as problems once the site is live.
Which prompt should I use first?
Start with the prompt that fits what you have. For a new one-page site, use prompt 1. For a site with several pages, use prompt 2. For a site from Lovable, Bolt or v0, start with prompt 4.
Do these prompts work in ChatGPT and Claude?
Yes. They are plain instructions, so they work in ChatGPT, Claude, other chat assistants and coding tools such as Claude Code or Cursor. Replace the parts in square brackets with your own details.
What is a 404 page and do I need one?
A 404 page is what visitors see when they type an address that does not exist on your site. Without one, many hosts show a bare "Not found" message. A 404.html in your own style with a link to the home page keeps visitors on your site.
Can my AI put the finished site online too?
It can if it has a way to publish. With UpSheGoes you connect ChatGPT or Claude once, and it puts the site live on your own domain. Whether you can add a custom connector depends on your plan with them.
How small should my website be?
For speed, keep photos under about 200 KB each. If a chat assistant publishes your site to UpSheGoes, one publish can be about 1 MB, which is enough for text and a few compressed photos.