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
You need to add both your www and your
@
/root as Pages Custom Domains under the Pages Project if you want both to workThats 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?
no, the record isn't enough, you need to add them under the Pages Project Custom Domains tab
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?
if you want the www to work yea, or you could add a redirect for www ->
@
/apexThanks 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
Please check other help posts too
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? :/
hmm, can you clarify what you mean by "not a single domain"?
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 :]
You can do www -> root two ways
https://community.cloudflare.com/t/redirect-www-example-com-to-example-com-using-single-dynamic-redirects/636764 (single/dynamic redirects)
or
https://developers.cloudflare.com/pages/how-to/www-redirect/ (bulk redirects)
Still the problem that i have 2 different hots, one with www one without www .. :o
that's the point of the redirection, to make one go to the other yea
I actually did exact what is oin the community one :/
what's your website link?
i doesnt want to show my url live, sorry :/
you can DM it, or at least give the exact error/what you do see
i have similar problem to this nad cant find the solution