"Successfully deployed" a page via zip upload, but it shows a 404 error, when I tr

For Workes & Pages, what is the name of the domain?

basic-geometrypagesdev

What is the error number?

404

What is the error message?

404: Not Found

What is the issue or error you’re encountering

“Successfully deployed” page doesn’t work.

What steps have you taken to resolve the issue?

I have checked the assets. They are in the root. There’s a decent indexhtml file. I have tried a different browser too.

What are the steps to reproduce the issue?

Try to open it.

Screenshot of the error

Could you double-check for the index.html file? You might have to double-check the structure :thinking:

https://basic-geometry.pages.dev/index.html → doesn’t open as well.

is your root directory set directly? Are you using some framework or not?

Should be like:

slika

For Cloudflare Pages, ideally would be like I know to keep and make things simple:

  • main folder → named website
    • index.html → the main file which contains all the stuff needed (text, linked resources, etc.)
    • CSS directory → for any 3rd-party CSS stylings
    • JS directory → for any scripts I have
    • images directory → I put my images and icons here

After that structure, I make a zip archive from the “main folder” and then upload my zip to the Cloudflare Dashboard → Pages via Drag & Drop from my desktop.

1 Like

Thank you for thinking along.
I have all files in the root to keep it simple.
The html file works in another environment, meaning that it’s ok.

I mean I really appreciate that you took the time to reply, but the thing is that I’m getting a “not found” error. How the files are organized in the root is -or should be- irrelevant. I regard the icons images. Technically they are images. Yet they have to be in the root folder. Why shouldn’t I keep my other about 15 images there too? I have 3 pages with minimal styling, therefore there’s no css library. I have one single js file that has to be in the root as well. No JS folder. That’s just personal preference, I just didn’t want to leave that part of your reply unanswered. At least I really hope that not having empty folders doesn’t lead to a 404 error. Thanks anyway.

Type assistant turned “2/3” to “⅔” and it crashed the html file.
It took me a while to figure it out.
It works now.
Thank you.

1 Like

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.