Your AI-made website works on your computer but not online
An AI assistant made you a website. It looks right when you open it on your computer, but once it's online the images are missing, the page is blank, or the contact form sends nothing. It's almost always one of a dozen causes, and most take a minute to fix. They're the same on any host.
Find your symptom below. If you'd rather not fix it by hand, copy the cause into the chat and ask the assistant to fix the files: it usually can, once it knows what's wrong.
The page shows code instead of the website
- The file isn't really HTML. It was saved as
index.html.txtor as a Word document. Save it again from a plain text editor (Notepad on Windows; TextEdit on a Mac after Format → Make Plain Text) with the nameindex.html. - The chat's formatting came along. If the file starts with
```htmlor ends with```, delete those lines: they mark a code block in the chat and aren't part of the page.
You see a starter page, a list of files, or "not found" at your address
- The home page must be called
index.html, in lowercase, at the top of your site.Index.html,home.htmlorwebsite.htmlwon't open at your plain address. - Everything ended up one folder down. If you uploaded a .zip or a folder, the page may now be
at
/my-website/index.htmlinstead of/index.html. Move the files up to the top, or upload the folder's contents rather than the folder.
Images don't show
- Upper and lower case. Your computer treats
Photo.JPGandphoto.jpgas the same file; a web server doesn't. The name in the code must match the file exactly. This is the most common cause of all. - The code points to your computer. Addresses like
C:\Users\…,/Users/…orfile:///…only work on your machine. Use the file's name relative to the page, such asimages/cake.jpg, and upload the image too. - The image only ever existed in the chat. Links starting with
sandbox:or/mnt/data/, or names of photos the assistant never gave you, point to nothing. Use your own images, upload them, and ask the assistant to use their names. - Spaces and symbols in file names.
My Photo (1).jpgoften breaks. Rename tomy-photo-1.jpgand update the code. - An
http://image on anhttps://page. Browsers block it. Change the address tohttps://, or upload the image yourself.
Links to your other pages go to "page not found"
The same causes as images: case (About.html vs about.html), paths on your computer, or
a page the assistant mentioned but never wrote. Links to localhost or 127.0.0.1 only
work while a program runs on your computer; replace them with your page names.
The page is blank
- It's an app that needs building first. If you have a
package.json, asrcfolder or files ending in.jsx,.tsxor.vue, the assistant made a React, Vue or similar project (this is what Lovable and Bolt export). Those files are source code, not the website. Build it (usuallynpm installthennpm run build, or ask the assistant for the exact steps) and upload what's in the folder it creates, oftendistorbuild. - A script stopped with an error. Open the page, press F12 (or right-click → Inspect) and look at the Console tab. Copy the red message into the chat and ask the assistant to fix it.
The contact form sends nothing
Forms need something on the server to receive them, and what assistants write often isn't there:
- it posts to a PHP file such as
contact.phpormail.php, which a host for plain websites doesn't run; - it uses a form service with a placeholder left in, such as
YOUR_FORM_ID; - it uses
mailto:, which only opens the visitor's own email app, if they have one.
On Pagehaus, change the form to action="/_form/contact" method="post" and messages are emailed to
you, with no other code. See contact forms without PHP.
What you save disappears, or other people can't see it
Bookings, orders, comments or an "admin panel" that saves without a database usually keep everything in your own browser (it's called local storage). It works when you try it, but each visitor sees only what they entered on their own device, and clearing the browser wipes it. Sharing data between visitors needs a server or a service. For orders and bookings, a form that emails you each one is often enough.
A login page with the password in the code
If the assistant made a login or admin page that checks the password in the page itself, anyone can read the password: right-click → View page source shows it. It isn't protection. For a private area, use a host's password protection (on Pagehaus, password-protected pages on a Personal or Pro plan), or keep that page off the internet.
The page uses an API key
A page that talks to ChatGPT, a map service or a database often has a secret key written into its code. Anyone can copy it from the page and run up your bill. Don't publish it. If you already did, remove the page and create a new key with the service (the old one is exposed for good). Features like that need a small server that keeps the key private.
PHP, Python or Node files
Files ending in .php, .py or a server.js are programs meant to run on a
server. Hosts for plain websites, Pagehaus included, don't run them. Ask the
assistant whether the site can work without them; a surprising amount can, with a form service for the parts
that send something.
It looks wrong on a phone
Tiny text and a zoomed-out layout mean the page is missing one line in its <head>:
<meta name="viewport" content="width=device-width, initial-scale=1">
Your change doesn't show
Reload without the browser's saved copy: Ctrl+F5 on Windows, Cmd+Shift+R on a Mac. If it still doesn't show,
check you replaced the file in the right place: two copies called index.html in different folders
is a common mix-up.
Find these problems automatically
- Ask your assistant to check the site. If Pagehaus is connected to Claude or ChatGPT, say "check my Pagehaus site for problems": it finds broken links and images, wrong case, forms that can't deliver, and pages visitors couldn't find. See publish a website ChatGPT or Claude made.
- On your computer, before uploading: the free pagehaus tool runs
pagehaus checkon a folder and lists broken links and images and names in the wrong case, whatever host you use. - After it's online: your site's Analytics tab lists the addresses visitors tried that don't exist, so you can fix or redirect them.
Not online yet? Make a free site, drop your files on its Files tab, and
it's live at https://yoursite.pagehaus.site/.