Google’s Gary Illyes stated that Google Search can course of JavaScript redirects however Google nonetheless does not recommend using JavaScript redirects as a result of different search engines like google and yahoo won’t decide up on it.
Gary stated on Reddit “it [JavaScript redirects] works on Google, however i see different search engines like google and yahoo are having a more durable time choosing them up.”
The enjoyable factor is, that Google Webmaster Weblog makes use of JavaScript redirects to the new blog location as a result of that was the only redirect option available.
Gary stated on Reddit “we used js redirects on site owners.googleblog.com as a result of that was the one factor we might use for 1:1 redirects, and it really works on Google, however i see different search engines like google and yahoo are having a more durable time choosing them up.” “if I’ve had a selection,” Gary stated “I would not have used js redirects, ever.”
Gary additionally chimed on this morning on this matter on Twitter:
if my idiotic JS redirects labored simply effective on https://t.co/6zWhZNbj28, I am sure 302s will not do your website a lot hurt both
— Gary 鯨理/경리 Illyes (@methode) February 18, 2021
So when you’ve got a selection, use server aspect 301 redirects.
Discussion board dialogue at Reddit.