Quick answer
Find the missing file → check its address and finished website files → fix one cause → test again.
A page can open while its images or CSS—the files controlling its appearance—fail to load. This guide is for a static website, made from finished page files, whose original project you can edit with an AI coding assistant.
Different problem? A page address showing 404 needs the 404 guide. Content that loads but overflows on a phone needs the mobile layout guide.
Step 1: name what is missing
Open the same website project in the AI coding tool you used to build it. Make a backup copy or confirm you can restore a saved version. Then give your assistant:
- Page: the exact address, including the inner page.
- Symptom: “The workshop photo is blank” or “The whole page looks unstyled.”
- Scope: one page or several; local preview, live site or both.
- Screenshot: include the surrounding section; remove private details.
Try the homepage and the affected inner page. If only the inner page fails, that is a useful clue—not a diagnosis.
Step 2: ask AI to trace the file
Paste this into that project’s chat. Replace the bracketed text, then send it.
Inspect [page address] in the original project.
Problem: [what is missing, and where it happens].
Do not edit or publish yet.
For the affected image or CSS file, report:
- the requested address, response status and content type;
- the source file and matching production build file;
- the smallest fix supported by that evidence.
Preserve existing work. If you cannot inspect the page,
tell me what evidence you need instead of guessing.
If the assistant cannot inspect requests, ask it to explain how to find the affected file in your browser’s Network panel. Share only the relevant result, with private information removed.
| What you find | What to check |
|---|---|
| Image request returns 404 | File location, spelling, extension and exact letter case |
| CSS request returns a web page | Wrong address or a rule serving HTML instead of CSS |
| Homepage works; inner page fails | Whether the file address changes with the page’s folder |
A 200 response alone is not enough. A stylesheet must be delivered as CSS, with the correct text/css content type—not an HTML page. See MDN’s CSS troubleshooting advice.
Step 3: fix one confirmed cause
Before approving, ask for the wrong address, the correct address and the exact files it plans to change.
In our test, the page requested /before/services/images/workshop.svg, but the file was at /images/workshop.svg. That is a specific mismatch to fix. Relative addresses depend on the page’s location; adding / everywhere is not a universal fix. Sites hosted inside a subfolder may need different paths.
Apply only the agreed fix for [affected file].
Keep the content, design and unrelated edits unchanged.
Show the differences and run the existing production build.
Check the homepage and affected inner page.
Do not move all assets, change hosting or publish.
Ask the assistant to check the finished build, not just the source folder. For example, Astro copies public files and processes source files differently. Preserve the project’s existing approach.
If the browser reports an insecure resource, inspect that specific address. On HTTPS pages, HTTP resources can be upgraded or blocked; mixed-content behavior varies. Do not disable browser protection.
Step 4: check the built page
Ask your assistant to run the existing production build, start its local preview and give you the link. Open it, then ask it to check desktop, 390px and 320px widths. If it cannot, ask for instructions for your browser.
- The intended image appears, not just its description or an empty space.
- The intended styles apply; the CSS response contains CSS.
- The homepage and inner page both work when opened directly.
- Text and links remain intact, with no unintended sideways page scrolling.
Our controlled test: a fictional inner page requested files from the wrong folder. Its image request returned 404; its CSS request returned 200 with HTML. Correcting the two paths restored both at desktop, 390px and 320px. Text and links stayed intact.
This was a local browser test, not a Cloudflare incident or a physical-phone test.
Publish and recheck
A successful local fix still needs a live check. Review the changed files and follow the safe update guide.
After publishing, open the same page and recheck the affected file. If only the live site fails, compare the deployed version and its files before making another change.
Do not change DNS, delete the hosting project or clear all site caches as your first response to one missing file.
Official guidance and the fictional browser test checked October 28, 2026. The prompts are instructions to adapt, not a guaranteed repair.