squirrelscan
GitHub

URL Hyphens

Checks that URLs use hyphens, not underscores

Checks that URLs use hyphens, not underscores

Rule ID url/hyphens
Category URL Structure
Scope Per-page
Severity warning
Weight 4/10

Solution

Use hyphens (-) to separate words in URLs, not underscores (_). Google treats hyphens as word separators but treats underscores as word joiners. ‘blue-shoes’ = ‘blue’ + ‘shoes’, but ‘blue_shoes’ = ‘blueshoes’. This affects keyword matching and SEO. Replace underscores with hyphens and set up redirects from old URLs.

Enable / Disable

Disable this rule

[rules]
disable = ["url/hyphens"]

Disable all URL Structure rules

[rules]
disable = ["url/*"]

Enable only this rule

[rules]
enable = ["url/hyphens"]
disable = ["*"]

Type to search…

↑↓ navigate↵ openesc close