I have tried everything, no luck!
I have Next.js site and week ago Google Search console show that cant index my site: https://kldsolutions.lv/
I have player adjusted my Middleware and layout page but I still cant verify it.
From curl.exe -A “Googlebot” -I https://kldsolutions.lv I get this:
HTTP/1.1 307 Temporary Redirect
Age: 22
Cache-Status: “Netlify Edge”; fwd=miss
Content-Type: text/html; charset=utf-8
Date: Thu, 30 Jan 2025 15:03:53 GMT
Etag: W/“27-ghawzGh2y9RPAcFY59/zgzzszUE”
Link: https://kldsolutions.lv/; rel=“alternate”; hreflang=“lv”, https://kldsolutions.lv/en; rel=“alternate”; hreflang=“en”, https://kldsolutions.lv/; rel=“alternate”; hreflang=“x-default”
Location: https://kldsolutions.lv/en
Server: Netlify
Strict-Transport-Security: max-age=31536000
Vary: Accept-Encoding
X-Locale: lv
X-Nf-Request-Id: 01JJVVT6VS8ZRFXVJ9CGQWMMPQ
Location is set to redirect to /en which isnt correct.
Maybe someone have an idea what else I can check? I have deployed clearing cache multiple times.
I tried other bots as well - same issue.
Page itself works great, the problem is only with indexing on Google Search console.