Redirection affecting SEO
Unanswered
European sprat posted this in #help-forum
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 https://nextjs.org/docs/ gets by default redirected to https://nextjs.org/docs (308 Permanent Redirect)
so google doesn't indexes pages having 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 https://nextjs.org/docs/ gets by default redirected to https://nextjs.org/docs (308 Permanent Redirect)
so google doesn't indexes pages having redirection.