404 error when I try to open my website
Whenever I click "visit" in my Cloudflare dashboard, instead of showing my coded website, I receive this screen.
How can I fix this?
13 Replies
Even I see the same. What have you done to resolve? Any steps taken? Does the mentioned host exist?
How is this website set up? Is it a static website?
Yep, it’s a static website. I haven’t done anything to resolve it because I’m unsure of how to fix it
Can I take a look at the structure?
I'd love help, but as I'm very new to cloudflare, I need guidance on how to do that
Of your static website, I'm assuming it's some kind of HTML or React website, can I take a look at the file structure
404 indicates that the server cannot find the correct resource for what you are requesting
I can send you the html file
in dms
@Oscar Welton-Rosie So, where this static site is supposed to be, at the root of this, do you have an index.html file?
I don't...
Do I need one?
Try creating an empty one and see if it resolves the problem
wdym empty?
Just a file with nothing in it called "index.html"?
@WTDawson9 that worked. Thank you so much!!!
Alright, you may want to set up a redirect in your index.html page to go to what ever your main page is
Will do