522 Error Cloudflare Pages and Custom Domain

Hey Guys, i've always a 522 Error on my custom domain. I've 2x CNAME one @ and one www targeting to the xxx.pages.dev site, but the custom domains reaching all the time 522 Error. I set up the custom nameserver on my custom domain, also the proccess shows active in cloudflare. Can someone help me solve the problem?
18 Replies
Chaika
Chaika7mo ago
You need to add both your www and your @/root as Pages Custom Domains under the Pages Project if you want both to work
owl337
owl337OP7mo ago
Thats what i did or not? I have a cname xxx.com content xxx.pages.dev and one cname with www content also xxx.pages.dev?
Chaika
Chaika7mo ago
no, the record isn't enough, you need to add them under the Pages Project Custom Domains tab
owl337
owl337OP7mo ago
When i click on my project in pages, and go on custom domain it shows 1 "xxx.com" do i need to setup here a second with www also?
Chaika
Chaika7mo ago
if you want the www to work yea, or you could add a redirect for www -> @/apex
owl337
owl337OP7mo ago
Thanks bro! I didnt know that i need to setup both records there! Worked fine! I close this :] When i find out how to close xD
rudi
rudi7mo ago
Please check other help posts too
owl337
owl337OP7mo ago
Sry that i need to ask again .. but something is wrong :D Actually i wanted that www. redirect to xxx.com and not a single domain? :/
Chaika
Chaika7mo ago
hmm, can you clarify what you mean by "not a single domain"?
owl337
owl337OP7mo ago
So, i wanted that my domain.com is the mainpage, and www.domain.com should redirect to mainpage.com Sorry, using pages for first time :]
owl337
owl337OP7mo ago
Still the problem that i have 2 different hots, one with www one without www .. :o
Chaika
Chaika7mo ago
that's the point of the redirection, to make one go to the other yea
owl337
owl337OP7mo ago
I actually did exact what is oin the community one :/
Chaika
Chaika7mo ago
what's your website link?
owl337
owl337OP7mo ago
i doesnt want to show my url live, sorry :/
Chaika
Chaika7mo ago
you can DM it, or at least give the exact error/what you do see
umarulharry
umarulharry7mo ago
i have similar problem to this nad cant find the solution
Want results from more Discord servers?
Add your server