Hreflang: massive amount of pages in 302
So I'm trying to do a preliminary SEO analysis for an important potential client. I saw a huge amount of 302 from its website reported both in Screaming Frog and Semrush (as well as other crawlers). I also changed the user-agent to double check with the Googlebot and checked the URL with the command "curl -I". They all give the same result.
What happens is that every page that is not in english is considered by the bots as a 302. But those pages are both ranking in the SERP and accessible as any 200 page would be. I checked the hreflang links in the html code, there are a few mistakes (like no country codes) but nothing that should trigger this kind of mess.
Also, apparently pages that only have an english version with no equivalents in other languages don't have this problem and have a code 200.
Of course, considering this is not (yet) a client, I can't access their GSC to see the acutal status of their webpages.
Any idea of what might be triggering this?
Apologies if I made some mistakes in explaining the problem, I started working with SEO not so long ago.
Thanks a lot!
Sure @ms, Please check the below link for more detail,
https://sitechecker.pro/site-audit-issues/redirecting-hreflang-link/
Sounds like the site is automatically redirecting traffic based on user agent language or their GEO, but who knows. It's just a guess.
I'd try to send language specific headers in your Curl request and let's see what happens. If it's 302, check logs on the server (if you have access to it) and find out what's happening there. At least, you want 301 redirect.
Also check hreflang implementation and canonical URLs for localized pages.
Again, even though your question is clear, it's really hard to tell what is the issue with the site and why it redirects with 302.
@binayjha please, provide more information in your answers. One sentence is not enough to help in such case. Thanks
Incorrect hreflang can lead to 302 errors.