Skip to content

Rule · SEO

Both trailing-slash and non-slash URLs serve 200

seo/trailing-slasherrorvoid seoupdated

Why it matters

/about and /about/ are different URLs; serving both creates duplicates that split links and crawl budget.

How to fix it

Pick one form (Next.js default: no slash, via 308) and make the other permanently redirect. Keep canonicals, sitemap and links on the same form.

Example

ts
// next.config.ts — default is trailingSlash: false (/about/ → 308 → /about)
const nextConfig: NextConfig = { trailingSlash: false }

References

void seo reports 60 rules in this category. What search engines need from the raw response: status codes, titles and descriptions in <head>, self-referencing canonicals, one h1, crawlable links, Open Graph, icons, robots.txt and a sitemap with real dates.