SEO for Solos
foundations

URL normalisation

URL normalisation is reducing the many ways a URL can be written to one canonical form.

Why it matters

Centralising it in one function means a bug is fixed once rather than in every template that builds a link.

How it is measured

Unit test the function against an empty string, a lone slash, a double slash and a trailing slash.

Checks that involve url normalisation

Related terms

Questions

What is url normalisation?

URL normalisation is reducing the many ways a URL can be written to one canonical form.

Why does url normalisation matter?

Centralising it in one function means a bug is fixed once rather than in every template that builds a link.

How is url normalisation measured?

Unit test the function against an empty string, a lone slash, a double slash and a trailing slash.