创建Pages后无法访问,显示404

What is the name of the domain?

newyear.teamlgc.us.kg

What is the error number?

404

What is the error message?

Page not found

What is the issue you’re encountering

我使用Cloudflare Pages构建了一个网站(上传了HTML文件),但是访问pages.dev的域名还是自定义的域名都显示404

What are the steps to reproduce the issue?

我使用Cloudflare Pages构建了一个网站(上传了HTML文件),但是访问pages.dev的域名还是自定义的域名都显示404

How does your folder structure look like?
Where’s your index.html? Is your root directory set directly?
Have you got build or output folder, does it exist and was it generated?
Are you pulling this from GitHub or how do you deploy or manually uploaded via Dashboard?

I do have a index.htm file in the zip file that I uploaded.
PS:I’m new here and not fimilar with this

Awesome!

May I ask could you cross-check if your structure folder is as example from below or something similar, or different?

Depending on your project, However, 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.

You could share a screenshot of the “Assets uploaded”.

Click on View Details:

slika

And then there should be index.html (example from below):

https://newyear.teamlgc.us.kg/index.html → doesn’t open as well.

is it .html or .htm? :thinking:

https://newyear.teamlgc.us.kg/index.htm does open :hugs:

Kindly, consider using .html.

Oh,thanks.It worked:D
I’ll delete this post

Wait…Is that the scratch game i’ve made?
It seemes i’ve uploaded the wrong file

I am happy to assist you :hugs:

Double-check, yes :smiley:

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