how do I make a normal webpage

I have wrote all the code just it says it also needs other programs and idk what they are
8 Replies
Chaika
Chaika4mo ago
going to need more info then that lol. What are you trying to use, CF Pages?
Electri Evo
Electri EvoOP4mo ago
yeah sorry idk much about this I only have a html and css
Chaika
Chaika4mo ago
well, what are you trying to do?
Chaika
Chaika4mo ago
If you just want to setup a simple website using Cloudflare Pages drag/dropping the files: https://developers.cloudflare.com/pages/get-started/direct-upload/#drag-and-drop
Cloudflare Docs
Direct Upload | Cloudflare Pages docs
Upload your prebuilt assets to Pages and deploy them via the Wrangler CLI or the Cloudflare dashboard.
Electri Evo
Electri EvoOP4mo ago
I mean how do I get it to work as it doesnt work with just a html and css
Leo
Leo4mo ago
I actually understand Electri's situation. I have a very simple web page using just HTML and a simple graphic. Not even any CSS. The link that Chaika included does give instructions for how to upload this sort of simple thing. But then there are obscure, arcane networking things that prevent the site from actually working in the "usual way" - meaning, you can't just type in www.huntsafe.org, for example. If you type the URL https://huntsafe.org, that does work. Also it's possible to type in the URL https://7138df4c.huntsafe.pages.dev/ and see the content. But these are not what I want the world to have to type in. Naive users should be able to go to huntsafe.org, www.huntsafe.org, http://www.huntsafe.org. All these are very old standards that should be supported. Yet two of the three (www.huntsafe.org and http://www.huntsafe.org) don't work. I have read a lot about A records and CNAME records and redirect rules. This is not information I want to know about, I don't care about this, but it seems required if I am to accomplish this simple functionality using Cloudflare. This very functionality is provided invisibly by other hosting providers. I never needed to learn these things - I just uploaded my HTML code and graphics and the site was live and available to the world. I have tried a lot of what I've read online but am still having a lot of problems. Can someone give me a script that I can just follow, like this: 1) Upload your stuff. (I've done this successfully). 2) Verify that your stuff works using the Cloudflare-provided URL, for example, ivocate1.pages.dev. (I've also done this successfully). 3) Set the following settings so that it actually is viewable by the world. This is the step that I cannot accomplish. Like I said, I tried (for many, many hours) using whatever advice I could scrape off the internet. It isn't simple, and it doesn't work. I've even, very carefully, compared a kind-of-working website (m-mm.org) to one that doesn't work at all (ivocate.org). Every single DNS setting that I can find, and the one rule that I tried, is identical (except for the obvious difference of where the web content is finally stored). One site works, the other does not. I'm about to conclude that I'm going to use Cloudflare only as my domain registrar and use Scala web hosting for the actual hosting.
Chaika
Chaika4mo ago
Did you add www.huntsafe.org as another Pages Custom Domain under the Pages Custom Domain tab? Alternatively you can have www redirect to apex: https://community.cloudflare.com/t/redirect-www-example-com-to-example-com-using-single-dynamic-redirects/636764
've even, very carefully, compared a kind-of-working website (m-mm.org) to one that doesn't work at all (ivocate.org).
I'm not sure what ivocate.org is in relation to the other site you linked, but 522's with Pages sites usually mean you didn't add the domain to the Custom Domain tab of the Pages Project, you need to do that even if you manually setup the dns record
Leo
Leo4mo ago
Thanks, Chaika! That worked great. Sorry about the confusion regarding multiple domains. I have a lot of web sites and they typically are just small things giving basic, rudimentary information. That's all I need. So, for example, m-mm.org, ivocate.org, and huntsafe.org are all similar websites but for various different efforts. Thanks to what you told me I was able to get huntsafe.org and ivocate.org working. I wish that Cloudflare would make this information available. Something like a script: "Here is how to get your rudimentary web sit up and running." I guess Cloudflare isn't catering to my small niche. You filled the gap and again, thanks.
Want results from more Discord servers?
Add your server