Next.js Discord

Discord Forum

Redirection affecting SEO

European sprat posted this in #help-forum
Open in Discord
European spratOP
By default nextjs redirects the urls having forward slash as suffix, due to which google crawlers are not indexing the page (because of redirection)

I tried to fix this by adding trailingSlash in next.config.js but due this normal urls are getting redirected with suffix '/'.

e.g gets by default redirected to (308 Permanent Redirect)
so google doesn't indexes pages having redirection.

0 Replies