Www is redirecting to a different domain hosted on godaddy

Hi Team,

I have multiple domains hosted on godaddy and all of them are configured through cloudflare.

Recently I bought a new domain 3pagecrm.com on godaddy and configured on cloudflare. A record points to my godaddy server and CNAME app points to tomcat server. Attached are my DNS records.

Problem is - When I access https://3pagecrm. com, it works fine. But when I access www. 3pagecrm. com, it redirects to evergreencity . in which is a complete different website hosted on same godaddy hosting. Can anyone help what is going wrong.

to hit and trial, when I replace godaddy IP with VPS IP, www. 3pagecrm .com works fine.

Likely you have not configured www.3pagecrm.com to be answered on Godaddy. You either need to set that up on Godaddy, or you can redirect requests for www.3pagecrm.com to 3pagecrm.com using Cloudflare.

1 Like

There are no DNS records added on godaddy. I just configured cloudflare nameservers in godaddy DNS settings. I do not want to add redirect rule until it is a last resort. ideally after adding www cname, it should work fine. there are other websites hosted on same godaddy server and cloudflare where www.url.com is working fine

CNAMEs do not do this on their own. The hostname needs to be set up be answered by the host or you’ll get a 404, a parking page or some other site depending on how the site is configured.

As your www is redirecting though, check your Cloudflare rules for unexpected redirects…
https://dash.cloudflare.com/?to=/:account/:zone/rules/redirect-rules
https://dash.cloudflare.com/?to=/:account/:zone/rules/rules

If none are there, check if any are set on your hosting.

curl -I https://www.3pagecrm.com
HTTP/2 301
date: Fri, 03 May 2024 15:35:17 GMT
content-type: text/html; charset=iso-8859-1
location: https://greyboard.in/3pagecrm.com/
cf-cache-status: DYNAMIC
report-to: {"endpoints":[{"url":"https:\/\/a.nel.cloudflare.com\/report\/v4?s=tr6XTFndzjXU%2FuPos5nyvDYDtWGcdGV226Q3dxJXfNUk7EYgWi7Qmid4x0m%2F9pqec3OvRkdPhFk3b8LTPaYcHyUNdKOKVDIES4RDohCTbHsf84j8HeorSm1mj0ykeqwya2gpC8oivRGpdIUPuYNc"}],"group":"cf-nel","max_age":604800}
nel: {"success_fraction":0,"report_to":"cf-nel","max_age":604800}
server: cloudflare
cf-ray: 87e151e6b858770e-LHR
alt-svc: h3=":443"; ma=86400

curl -I https://3pagecrm.com
HTTP/2 200
date: Fri, 03 May 2024 15:35:24 GMT
content-type: text/html
last-modified: Fri, 03 May 2024 14:28:01 GMT
vary: Accept-Encoding,User-Agent
cf-cache-status: DYNAMIC
report-to: {"endpoints":[{"url":"https:\/\/a.nel.cloudflare.com\/report\/v4?s=%2BTK3Jo5rMzh823M%2FDzRumq2bs1Y7DUlQKmwlYtonORS21wAbw%2F0ECR3ko4xclh80WhsDaBAs3zrXTdQbJ%2BYvqGcEv8kO5zptNc5RrFhuSsDfPWRKKaQwrQHyCA4kxLrp7wFqJF7Vwxkzjq0%3D"}],"group":"cf-nel","max_age":604800}
nel: {"success_fraction":0,"report_to":"cf-nel","max_age":604800}
server: cloudflare
cf-ray: 87e1521738668871-LHR
alt-svc: h3=":443"; ma=86400
1 Like

Thanks sjr.

curl -I https://www.3pagecrm.com
HTTP/2 301
date: Fri, 03 May 2024 15:35:17 GMT
content-type: text/html; charset=iso-8859-1
location: https://greyboard.in/3pagecrm.com/

This is responding because I was trying to add a forwarding rule in GoDaddy. GoDaddy is appending the primary domain also as part of forwarding. Anyway, one thing is clear. As you mentioned in your previous message, GoDaddy is not listening to www.3pagecrm.com. I will check with their support team once.

Thanks for all your time and help :slight_smile: I will get back if I require further help

1 Like

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