Cloudflare redirecting my homepage to www

Hi

My domain is https://oneeyeland.com

but Cloudflare is redirecting it to https://www.oneeyeland.com

when I us the following command in htacess file
I get the error to many redirects

RewriteCond %{HTTP_HOST} ^www.(.)$ [NC]
RewriteCond %{REQUEST_URI} !^/pg
RewriteRule ^(.
)$ https://%1%{REQUEST_URI} [R=301,QSA,NC,L]

How do I fix the problem. It look like a setting issue in Cloudflare

Thank you

Check for Cloudflare redirects under Page Rules and Redirect Rules…
https://dash.cloudflare.com/?to=/:account/:zone/rules/rules
https://dash.cloudflare.com/?to=/:account/:zone/rules/redirect-rules (check under single redirects and scroll down the page to check under bulk redirects)

https://cf.sjr.org.uk/tools/check?5b5699f7c2ae414ea756ff4538db151f#connection-server-https

1 Like

I dont have any page rules or redirect rules.

This issue is only happening on the home page and not on any other page.

Can you show a screenshot? On redirect rules ensure to scroll down and check the bulk redirects.

1 Like

sorry found the bulk redirects

2 Likes

Thank you SJR it helped. God bless.

1 Like

You have one SPF too many. Only one SPF record is allowed at any DNS name. You can use the SPF Surveyor at dmarcian to test your SPF syntax.

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