Google Search Console 301 Redirection

I’m trying to use 301 Redirect with Page Rules via Cloudflare in order to change domain on Google Search Console. I successfully set up Redirection, but Google doesn’t catch it.

For more:
Redirecting from scian.io → scian.xyz
And here are page rules regex:

The nameservers for this domain are:

Name Server: zara.ns.cloudflare.com
Name Server: anton.ns.cloudflare.com

May I ask if those are the correct ones and listed under your Cloudflare account for your zone? :thinking:

There seems to be missing an A record type for scian.io or any other like blog :thinking: Nevertheless, it should be :orange: proxied to make Page Rules apply and work as wanted.

Since you’re using a Page Rules for a redirection, you can add the A type scian.io pointed to a temporary IP like 192.0.2.1. Otherwise, I’d suggest using the correct origin/server IP address where the content is hosted, if so.

First of all, thanks for your reply.

Yes! It’s properly connected with Cloudflare and set to those name servers well.

I added scian.xyz 's ip which I can obtain with ping or traceroute ‘211.249.222.34’ with Cloudflare, but the same thing happens on Google Search Console… :frowning:

Something changed in pas 30mins or so.

From now on as I’ve checked via my desktop Web browser (local ISP) and my mobile (mobile data 4G), when I visit scian.io it does redirect to xyz fine and okay.

Also, when checking the HTTP headers via curl for scian.io and blog.scian.io I do see 301 and it’s from Cloudflare:

scian.io
HTTP/1.1 301 Moved Permanently
Date: Sat, 08 Oct 2022 11:43:29 GMT
Connection: keep-alive
Cache-Control: max-age=3600
Expires: Sat, 08 Oct 2022 12:43:29 GMT
Location: https://scian.xyz/
Report-To: {"endpoints":[{"url":"https:\/\/a.nel.cloudflare.com\/report\/v3?s=ivzbjoQwF6WBr3QQLXKRE5A7uMZByjcqOsukQWwMRBAkDTMfWqh4nv3s%2F58PAf2R9UMWRzcf%2Fj3CGLTtfYMHuWO%2BjDUuIxulOu6D5zF1PnwGL3vQupgGh5Vmrg%3D%3D"}],"group":"cf-nel","max_age":604800}
NEL: {"success_fraction":0,"report_to":"cf-nel","max_age":604800}
Server: cloudflare
CF-RAY: 756e9e7eec88c26a-VIE
alt-svc: h3=":443"; ma=86400, h3-29=":443"; ma=86400

blog.scian.io

HTTP/1.1 301 Moved Permanently
Date: Sat, 08 Oct 2022 11:45:58 GMT
Connection: keep-alive
Cache-Control: max-age=3600
Expires: Sat, 08 Oct 2022 12:45:58 GMT
Location: https://scian.xyz/
Report-To: {"endpoints":[{"url":"https:\/\/a.nel.cloudflare.com\/report\/v3?s=BgVeHJJMB6Fi%2FVpS0yoMuT1%2BL5Hx0zprGG0o9JV9802yL0nP14IE1P18%2BPU4dKhoIj7gXDt6K5vlSaZkpSkN9f%2BH7pmJYKOOz%2FXPCsTWM8AeGBJ4RRC2r%2F4IMygFnnfz"}],"group":"cf-nel","max_age":604800}
NEL: {"success_fraction":0,"report_to":"cf-nel","max_age":604800}
Server: cloudflare
CF-RAY: 756ea2261960c318-VIE
alt-svc: h3=":443"; ma=86400, h3-29=":443"; ma=86400

The only thing which isn’t working is the www. I’d suggest you to add the www DNS record too, if someone writes the www.scian.io in their Web browser, just in case so it’s redirected to the correct page instead of being presented with the error screen.

Other thing to see is the cache-control HTTP header, which is set to 3600 (1 hour).

So, if it isn’t working for you, you’d either have to:

  1. Try using a different Web browser
  2. Or clear your Web browser cache
  3. Try using a Private window (Incognito mode) or a VPN connection if possible
  4. Check if it is the same behaviour on your mobile phone (4G LTE, mobile data, cellular)

Thanks for your help, and I also set www.scian.io to scian.xyz and www.scian.xyz to scian.xyz as well, and I can see also it successfully redirects to destination domain scian.xyz.
But, I can still see error message on Google Search Console. :frowning:
“홈페이지의 301 리디렉션” : 301 Redirection of Homepage
“페이지를 가져올 수 없습니다.” : Can’t load page

@fritex

My best guess is either Google bot might need some time to apply the changes due to the DNS propagation.

Ok, thanks for help, and I’ll wait for hours.

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