www/non-www redirect is configured
Why it matters
Serving identical content at both www.yourdomain.com and yourdomain.com splits link equity between two URLs, creating duplicate content that Google may rank separately or penalize. Social shares, backlinks, and analytics fragment across hostnames, distorting traffic attribution. Users bookmarking the wrong variant land on an inconsistent canonical, and session cookies scoped to one host break authentication on the other.
Severity rationale
Medium because SEO and analytics damage compounds silently over time but does not break functionality or expose data.
Remediation
Pick one canonical hostname and issue a 301 from the other. In next.config.js, add a redirects() entry with a host match on www.yourdomain.com targeting the root domain with permanent: true. Alternatively, configure the redirect at the hosting layer via vercel.json or Netlify's domain settings — whichever lives closer to DNS.
// next.config.js
async redirects() {
return [{ source: '/:path*', has: [{ type: 'host', value: 'www.yourdomain.com' }], destination: 'https://yourdomain.com/:path*', permanent: true }]
}
DetectionPro
The detection method for this pattern is part of AuditBuffet Pro.
The full method (what to look for, pass and fail conditions, and how results get reported) ships inside the Pre-Launch Checklist Audit. The pattern definition, severity rationale, and remediation remain openly licensed under CC-BY-4.0.
Taxons
History
- 2026-04-18·v1.0.0·Initial import from pre-launch·automated