My site is connected to Cloudflare.
The DNS settings say:
A mysite.com IP_Server A www IP_Server
When I enter mysite.comn the address bar of the browser, the site opens normally.
But when I enter www.mysite.com, I get a 403 Forbidden error. It is from www that the site does not open.
Moreover, if proxying for A www records is enabled in the DNS settings, then there are no visitation logs on the server.
And if proxying is disabled, then another IP address is visible in the logs on the server (not the one specified in the DNS settings).
Please help me solve the problem.
I set up a 301 redirect via .htaccess. It should work correctly.
Same problem with .co domain.
It has no redirect.
Time on sitemeer.com 19:53.
The hosting provider says to contact Cloudflare support.
They don’t have visit logs from www.
Don’t bother with the server redirect, just configure aforementioned page rule and it will work. You do not even need to configure the DNS entries as you already have those. Just the page rule as explained in the tutorial and it will work.
I have another domain connected to Cloudflare.
I entered it on sitemeer.com
Time on sitemeer.com 19:53.
This domain does not have a 301 redirect.
The problem is this:
When I enter site.com in the address bar, the site opens correctly.
When I enter www.site.com, I get a 403 error.
The server administrator says that the problem is on the Cloudflare side. The server administrator has no logs of visiting www.site.com
Yeah, that is the .co domain we were previously talking about. If there’s an issue with that domain as well, you should discuss this in a separate thread.
As for the issue in this thread, simply make sure your page rule uses the naked .co domain for the redirect and it will work fine.