What should an SEO-friendly URL include?

ProcrustesPR

The key to an SEO-friendly URL is helping people understand what a page contains, not stuffing it with keywords. Start by reviewing the domain name, category path, and final URL segment (slug): is the path clear, and is the final segment concise and descriptive? Then decide whether to include dates, numbers, or file extensions. Articles and community answers on the topic generally recommend balancing brevity with descriptive wording, but they reach no consensus on the SEO effects of hierarchy, length, or capitalization. No particular format should be treated as a ranking guarantee.

ProcrustesPRProcrustesPRHow should I divide my DIY SEO budget?

Break down the URL and consider what each part does

In example.com/artists/acid_bath/lyrics, example.com is the domain name. The path that follows shows the relationship between the artist and the lyrics page, with the final segment, lyrics, identifying the lyrics page. One respondent on Webmasters Stack Exchange considers the domain and the final path segment more important for SEO. Another emphasizes that a path reflecting the site’s structure primarily helps users understand and navigate the site; it does not necessarily offer a ranking advantage.

Describe the page’s content without copying the entire title

In his 2024 Squarespace tutorial, Neil Patel recommends clear URLs containing relevant keywords for service or product pages—for example, /pediatric for a pediatric dental service page rather than an unintelligible string of characters. This is the author’s practical advice, not a required format published by a search engine.

  • Choose words from the page’s topic or title that describe its content so readers know what to expect.
  • Community answers suggest removing unnecessary special characters. If you base the name on an English title, you can also omit redundant articles or conjunctions.
  • Keep the wording descriptive when shortening it, rather than replacing it with an incomprehensible code just to save space.

Use category hierarchies purposefully and avoid confusing names

Community opinions differ on whether to retain the full hierarchy: some say it clearly conveys the topic, while others argue that a URL only needs to be brief and relevant, without reflecting the entire site structure. For users, retaining the hierarchy has a concrete benefit: someone seeing /artists/acid_bath/lyrics can understand that the level above is the artist’s page, and the next level up is a list of artists.

If you retain a hierarchy, avoid repeating the same information in the names. For example, in “fruit/apples/golden-delicious,” there is no need to make the final segment “golden-delicious-apples.” However, keeping only the lowest-level category may cause confusion if categories in different branches share the same name. Do not overlook category organization simply to make URLs shorter.

Numbers and formatting are options, not a checklist for ranking gains

Community answers point out that the URL itself needs to be unique; it does not necessarily need a unique number. These answers also do not establish that using an ID number alone improves SEO. For dates, file extensions, and trailing slashes, respondents generally suggest choosing based on preference or what is easier for the system to handle. These are formatting suggestions, not current official ranking rules.

Opinions also differ on whether capitalization affects rankings: some say it has no effect, while others disagree. Lowercase does, however, offer a clear benefit when typing: readers do not need to remember which letters to capitalize.

ProcrustesPRProcrustesPRWhy can I not find my published article on Google?

SEO-friendly URLs: perspectives from across the web

Do shorter URLs always rank better in search?

There is no guarantee. In a 2019 article, Neil Patel argues that short URLs containing one or two keywords help search performance. Another respondent, however, says there is no need to worry too much about slightly longer URLs because most people reach deeper pages through search or site navigation. You can consider URL length in terms of readability, but these views do not establish that shortening a URL directly improves rankings.

Should English words in URLs be separated by hyphens or underscores?

One recommendation is to use hyphens rather than underscores, but it comes from a community commenter's secondhand account of past advice attributed to Matt Cutts. According to that account, Google combined words on either side of an underscore at the time, which was the reason for recommending hyphens. This does not confirm current search engine rules. When choosing a separator, start by considering how easy it makes individual words to recognize.

Can different capitalization in a URL lead to different pages?

One respondent points out that this depends on the server: for example, /Page1 and /page1 may be two different pages. Using both versions in links could create duplicate-content issues. Besides considering ease of typing, you should therefore check how the site actually handles differences in capitalization. As for the effect of capitalization itself on rankings, opinions in the materials differ.

ProcrustesPREight SEO essentials for beginners: Website speed

References

  1. Permanent links format in wordpress: How to Choose?webmasters.stackexchange.com — Source used in the article above.
  2. Squarespace SEO Best Practices for Successneilpatel.com · 2024-06-13T19:00:00+00:00 — Source used in the article above.
  3. Are shorter URLS better for SEO?webmasters.stackexchange.com — Source used in the article above.
  4. Are shorter URLS better for SEO?webmasters.stackexchange.com — Source used in the article above.
  5. How to Rank New Content Fasterneilpatel.com · 2019-06-04T10:53:32+00:00 — Discusses: Do shorter URLs always rank better in search?
  6. Are shorter URLS better for SEO?webmasters.stackexchange.com — Discusses: Should English words in URLs be separated by hyphens or underscores?
  7. Include full category hierarchy in URL or only the "leaf"?webmasters.stackexchange.com — Source used in the article above.
  8. Include full category hierarchy in URL or only the "leaf"?webmasters.stackexchange.com — Discusses: Do shorter URLs always rank better in search?
  9. Include full category hierarchy in URL or only the "leaf"?webmasters.stackexchange.com — Source used in the article above.
  10. Are shorter URLS better for SEO?webmasters.stackexchange.com — Source used in the article above.
  11. Are shorter URLS better for SEO?webmasters.stackexchange.com — Source used in the article above.
  12. Good Practice for Formatting SEO-Friendly URLs?webmasters.stackexchange.com — Discusses: Can different capitalization in a URL lead to different pages?
  13. Good Practice for Formatting SEO-Friendly URLs?webmasters.stackexchange.com — Discusses: Can different capitalization in a URL lead to different pages?
  14. Good Practice for Formatting SEO-Friendly URLs?webmasters.stackexchange.com — Discusses: Can different capitalization in a URL lead to different pages?
  15. What is the best file extension for an SEO friendly URL?webmasters.stackexchange.com — Source used in the article above.

Related articles

How should I divide my DIY SEO budget?Why can I not find my published article on Google?Eight SEO essentials for beginners: Website speedEight SEO essentials for beginners: Getting your pages indexedEight SEO essentials for beginners: Page titles and descriptionsThe Five Most Common Mistakes SEO Beginners MakeHow to Set Up Heading Tags for SEO: Define Topics and Hierarchy Before Adding KeywordsWhat are the benefits and development challenges of SPAs?
ProcrustesPR
ProcrustesPR