Skip to content
Nazmul Nikhil
Menu

Underscores in URL (Semrush): Should You Switch to Hyphens?

Semrush flags URLs with underscores. Google recommends hyphens to separate words, but changing live URLs has a cost. Here's how to decide.

Nazmul Nikhil

By

Head of SEO & Assistant Manager, Digital Marketing at Notionhive

Published 1 min read
Underscores in URL (Semrush): Should You Switch to Hyphens?
Photo: Aryan Dhiman on Unsplash

In short

Semrush flags "Pages have underscores in the URL" because Google recommends hyphens to separate words in URLs. Use hyphens for all new URLs. For existing pages that rank, changing the URL means a redirect and a short settling period, so only do it during a planned restructure.

This is a low-priority warning. The fix is easy for new pages and optional for old ones.

Decide

Situation Action
New page or a page not yet indexed Use hyphens
Low-traffic old page Change and 301 redirect, if convenient
Ranking page with backlinks Leave it, or change during a planned migration

If you change URLs

  1. Update the slug.

  2. 301 redirect the old URL to the new one.

  3. Update internal links, canonicals and the sitemap.

WordPress: permalinks use hyphens by default; underscores come from typed slugs or uploaded file names. Shopify, Webflow and Wix: slugs generate with hyphens; check hand-typed ones. Custom builds: slugify titles with hyphens.

This guide isn't affiliated with or endorsed by Semrush.

Sources and references

TAGSSemrush Site AuditSemrush underscores in urlHyphens vs underscoresUrl structure
Nazmul Nikhil

About the author

Nazmul Nikhil

Head of SEO & Assistant Manager, Digital Marketing at Notionhive

SEO and AI search consultant in Dhaka, Bangladesh, helping small and mid-size businesses in the USA, UK, Australia and Canada.

Need help with this?

Get it fixed with Technical SEO

I find the issues that cost you traffic and fix them, starting with the pages that matter most.

Keep reading

Related articles

All Site Audit Issues posts →

Get the next guide in your inbox

One email when a new SEO or AI search guide goes live.

Ready to grow?

Get a free audit of your website, or book a 30-minute call to talk through your goals.

Nazmul Hasan

Talk to Nazmul directly

Reply within 24h

WhatsApp +880 1682835118
nazmulnikhil@gmail.com