I have a small issue and i need an expert to enlighten me,
my website works on [medousadevelopers.com]
Does not work on [https://www.medousadevelopers.com]
I understand that the www is not declared in the A records, which is a fact,
I cannot add another A nor Cname record because i have another one which is needed bcz i had issues with gmail and google hosted mails that i cannot touch bcz it fixed it.
What i ask the community Experts:
Possible solution 1 that i thought but i want to ask you guyz if its valid or some clarification:
Can i add 2 content on a Cname without affecting the functionality of it?
Content: ghs.googlehosted . com
Your www subdomain does have A/AAAA records returned via the CNAME.
A CNAME on www wouldn’t have anything to do with mail
No, that’s not possible. A CNAME is a “canonical redirect”, you’re basically saying “look over here”, having two would be saying “look over in two places for your record”.
Cloudflare’s not doing anything weird here
It looks like you already do have a CNAME on www for ghs.googlehosted.com, but it’s not working, probably because whichever Google Product you are using, you haven’t added your www as another custom domain to be allowed.
The better option here though would be to pick to use either www or apex (medouasdevelopers.com), and redirect the other to the one you pick. If you want your apex to be the location for your site, you can follow this guide here to add a Cloudflare redirect from www to apex (just make sure to remove the CNAME on www first): Redirecting www to domain apex · Cloudflare Pages docs. Otherwise, search engines punish for duplicate content.
Let me know if that helps your confusion, I understand that it can be a bit confusing with all of the record types and options
Yea, no redirect rules or anything like that will work without a proxied record existing, the traffic for www currently isn’t going through Cloudflare’s http request flow, so Cloudflare can’t act on it with redirects or anything.
A cname on www to google hosting, which is used for google sites, isn’t going to have anything to do with email. Especially considering you don’t even use google for email, your domain uses Microsoft 365 looks like.
The only way you’d find a solution without removing that record is probably by signing up for google sites and getting google to return the redirect, but it doesn’t even look like you use them, nor do I know if google sites even offers redirects like that.
The issue started when i propagated to a new domain registrar… Apparently there was some bad records on the mail and suddenly any email the company was sending to gmail or google hosted mails returned an immediate error that google says that my domain is spam and did not delivered my mail to the sender, however i was able to receive mails from gmail…
Then when i spoke to google support, they told me to add this www record which apparently actually fixed the issue and now we dont receive spam. this record is quite sensitive bcz if i remove that record then the whole company “im assuming” will have this issue again and we dont want that…
thanks for the tips i will look into them and also i have some other troubleshoots to try out today and see if that remediates the issue.
If anyone has any more ideas into how to redirect www to apex other then a cname record please enlighten us
Im testing it now, i did above, let me know if all good or could be better.
Im surprised why its not working already but i will give it 48 hours to confirm that this above is not working.
i already tried with the “Redirect Rule” Beta version and waited 48 hours with no result.
Lets see if above will work.
I believe it should work bcz thats not a record its separate and there is no duplicate unless the issue is with the Cname Record that i have for the www that is pointing to google and its clashing with it as below:
I have a record www pointing to google
i have a forward url pointing to apex from www.medousadevelopers.com
None of the rules/redirects are going to work as long as that hostname is unproxied. Cloudflare can’t act on traffic not flowing through it.
The CNAME resolves to an A record when DNS Resolvers follow it, it wouldn’t matter if it didn’t though because traffic still isn’t flowing through Cloudflare.
You’d need a proxied record, like the originless record Cloudflare recommends for redirects AAAAwww100::Proxied, and you’d have to delete the cname first. You’re looking down the wrong direction, the cname isn’t the thing fixing your email issues. Just think about it logically: Every single website would need a www cname pointing to google if they just want to email them? Someone should tell https://www.cloudflare.com/ then.
Try mail tester and other tools to diagnose mail issues, ensure your spf/dkim is configured correctly, etc.
I understand that it does not make sense, However if you don’t " Test " things you dont know.
I will take the risk and test it at some point, bcz its a fact when i added the Cname to google the mails started working… or is it? maybe they got fixed alone after some time because of the propagation of the registrar and until Google updates its system it wanted a week or so…
hmmm… as im thinking now i thought of maybe because i created a google account with a domain email this could have created the spam issue with google ? as Google might have seen that this domain created a gmail but did not add the cname of google and it resolved it as spam ? then maybe by deleting the google account that is created with that domain could resolve the issue ?
Some food for thought and to look at for later on testing.