URLs · URL structure

URL contains underscores

The address of this page separates its words with underscores. Google recommends hyphens, which are easier to read as word breaks.

How this page is built

The address of this page uses underscores between words: /tests/url_contains_underscores/. Every other page on this site uses hyphens. Search engines read both, but the mix makes it easy to link to the wrong version.

Why it matters

Google recommends hyphens to separate words in URLs. Underscores are not wrong, and modern search engines understand them, but they are harder to see when an address is underlined as a link.

A mix of underscores and hyphens also makes it easy to link to the wrong version of an address.

How to check it

Search a crawl export for addresses containing underscores. Check whether they come from a particular template, system or period of the site’s history.

How to fix it

Use hyphens in new URLs. Changing existing addresses is rarely worth it on its own, because it needs redirects. If you do change them, 301 redirect every old address to its new one and update internal links.

Back to all tests