301 redirect failing on SEO test

Hello everyone!

I have a redirect rules set from domain to www.domain, and they are working. However, when I run Google Search Cloud or any SEO test tool, I still get this error.

Warning, no [301 redirects] are in place to redirect traffic to your preferred domain. Pages that load successfully both with and without www. are treated as duplicate content!

Not all versions of your page point to the same URL.

Appreciate any assistance.

Do you mind to share your domain and a screenshot of the Redirect Rule (or Page Rule) you’ve set up?

Many thanks for your inquiry. domain is drbadi.app

Also seen SEO error here.

Your redirects seem to be working fine. I’ve just tested them a couple times using the command:

curl -sIL https://drbadi.app/

curl response

I ran if for HTTP and HTTPS, both are working fine.

What may be happening is that these tools that are saying they cannot redirect are being blocked by (Super) Bot Fight Mode or some WAF rule. You need to visit the Dashboard > Security > Events right after placing the requests through these tools to see what feature is blocking them, and then adjust it.

Hi!

Many thanks for the hint. I did activate some options in Cloudflare and there is no any explicit reference to an 301 redirect error any more. Also, checking on redirect special sites does not result in any error either.

However to be 100 certain, can you advise where to find error log ?

Rgrds

In a case where some redirects were not performing because of settings on Cloudflare, I don’t think there would be any errors logged. But anyway, on a paid plan you can go to Cloudflare Dashboard > Analytics & Logs and filter by status code.

Hi and sorry for being back.

While I could be sceptical about some SEO checking sites, this morning GSC issued a warning. Do you think that Cloudflare could be blocking it as well ?

Search Console has identified that your site is affected by 1 Page indexing issue(s). The following issues were found on your site. We recommend that you fix these issues when possible to enable the best experience and coverage in Google Search.

Top issues

  • Page with redirect

No worries.

You should visit Google Search Console documentation to better familiarize yourself with how GSC works. This is unrelated to Cloudflare per se, but may be the result of what you do with Cloudflare as a tool, including redirects you’ve set.

For instance, whether you enable Always Use HTTPS or set a redirect from HTTTP > HTTPS at the origin, you need to make sure you only ask GSC to only index the HTTPS version. Otherwise it will either complain of (a) Page with redirect, or (b) Page with duplicate content. Please see: What is URL Canonicalization | Google Search Central  |  Documentation  |  Google for Developers

If you have further doubts about what to do with your GSC settings, please visit their community, which has many experts on SEO and GSC. Google Search Central Community

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