System Information
- Strapi Version: 4
Hi, I have a Strapi + Next.js project.
When I visit the main page (e.g. https://mywebsite.com
), it redirects a few times and finally lands on /en
(default locale).
In the browser, everything works fine and I see the correct page.
But when I check in Google Search Console or run Screaming Frog SEO Spider, it reports a 500 Server Error for the main page (/
).
I think this may be caused by the multiple redirections and how the bot handles them.
My questions:
- Why does Googlebot recognize a 500 error when the main page redirects to
/en
? - Is this related to Strapi, Next.js, or server configuration?
- How can I fix this so that Googlebot sees a valid
200
response and does not report SEO errors? - Should I set a proper redirect (301/302) or return a static page on
/
?
bot show this:
Status Code 500
Status Internal Server Error
Indexability Non-Indexable
Indexability Status Server Error
/** @type {import('next').NextConfig} */
const nextConfig = {
images: {
remotePatterns: [
{
protocol: 'http',
hostname: 'localhost',
port: '1337',
pathname: '/uploads/**',
},
{
protocol: 'https',
hostname: 'images.pexels.com',
},
{
protocol: "https",
hostname: "landingapi.domain.somedomain",
},
],
},
}
module.exports = nextConfig
export const i18n = {
defaultLocale: 'en',
locales: ['en'],
} as const;
export type Locale = typeof i18n['locales'][number];