Error 522 (Host error, www and https://www not working)

Hi Cloudflare community,

I have migrated my hosting and domain to Cloudflare and have been very impressed. Although, Recently I noticed that website only works with https:// but not with www or https://www. I read Cloudflare articles as well as went through to similar posts before posting here, but I can’t get it to work.

To be more specific.

http:// or https://roshoppee.com (Works)
www.roshoppee.com (Host error, Error 522)
https://www.roshoppee.com (Host error, Error 522)

Screenshot has been attached for DNS page. (Note: SSL/TLS encryption mode is Full)

Any guidance will be appreciated, Thank you.

Is www.roshoppee.com working before you turn on :orange: for the DNS record?

Also I would suggest you to hide your IP address in the screenshot - someone may note down and launch DDoS attack to your IP address directly :laughing:

2 Likes

@erictung Thank you for letting me know that IP address are sensitive information, I did update the image. The Cloudflare logo is the default setting as the domain is hosted and registered at Cloudflare, I have not changed any settings as I am not much knowledgeable in the DNS.

1 Like

Ok, actually you prefer to use www.roshoppee.com as the main domain or roshoppee.com?

If you prefer roshoppee.com then I suggest you to redirect all www.roshoppee.com traffic to roshoppee.com using page rules.

If not, first you need to fix the configuration in the server itself, then redirect roshoppee.com to www.roshoppee.com

2 Likes

@erictung Thank you, I redirected www.roshoppee.com to https://roshoppee.com in page rules.

It seems to work well now, Appreciate your help.

1 Like

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