# How to redirect www to non-www (or the other way)

> Serving the site on two hostnames splits caches, cookies and ranking signals. Pick one and redirect the other with a 301.

Best practices · HTML version: https://getreport.app/learn/www-redirect

## www and non-www redirect

Passing looks like: www and non-www redirect passes.

**Why it matters.** When www and non-www both answer, visitors and tools see two sites with separate cookies, caches and analytics sessions. One should redirect to the other.

**How to fix it.**

1. Pick one host and 301-redirect the other to it, keeping the path; most hosts and CDNs have a one-click setting for this.
2. Use the chosen host everywhere (links, sitemap, analytics property, social profiles).

Check your own page: https://getreport.app/
