How do you design and optimize user- and SEO-friendly URLs?

ProcrustesPR

The key to friendly URLs is to help people understand the page’s topic, allow search engines to crawl it efficiently, and avoid unnecessary URL variants. Start with clear paths that reflect how your content is organized, then name them using short, meaningful words. Prefer hyphens between words, and remove parameters that do not change the content. The available information does not establish whether placing numeric IDs first or last, or adding .html, leads to better rankings. One website’s approach should not be treated as the best solution.

ProcrustesPRProcrustesPRHow can I tell whether an SEO tactic breaks spam rules?

Structure URLs around the page’s purpose—shorter is not always better

Google recommends simple, logical, easy-to-understand URLs. Shortening a URL does not mean removing every category. Keep the parts that explain how the content is organized, and avoid replacing descriptive text with long, hard-to-interpret identifiers.

  • Article or topic pages: A path such as /guides/url-design can describe the content using topic-related words.
  • Product category pages: A path such as /shoes/running-shoes can make the category and page topic easy to recognize.
  • Filtered lists: Keep parameters if they genuinely change the results, but check whether they generate large numbers of lists with only minor differences.

These examples illustrate the principles; they are not fixed templates. For instance, /695/title-goes-here and /title-goes-here/695.html both contain descriptive text. Neither can be judged better solely by the ID’s position or the file extension. Nor should you assume that a format used by a well-known website is necessarily the best fit for your own content.

Use the slug to describe the topic, not repeat the entire title

A URL slug is the descriptive part of a page’s URL. Semrush’s article on on-page optimization recommends including the primary keyword in the slug and keeping it easy to read; Google emphasizes meaningful, descriptive words. In practice, use a short phrase that accurately represents the topic. There is no need to squeeze the entire title into the URL, and you should not assume that adding keywords guarantees higher rankings.

  • Separate words: Prefer url-design over url_design or urldesign.
  • Choose a language: Google recommends using your target audience’s language, with transliteration where appropriate—not English in every case.
  • Handle capitalization: Google distinguishes between /APPLE and /apple; if your server ignores case differences, standardize on either uppercase or lowercase.

If the URL must retain en and tomato, and the content is genuinely organized into three levels—language, topic, and article—consider /en/tomato/growing-tomatoes. This is a structural example, not a claim that adding a directory level improves rankings. Non-ASCII characters in a link’s href should be percent-encoded as required by the documentation.

Reduce unnecessary URL variants rather than rejecting all parameters

Google specifies the following parameter format: separate each parameter name from its value with an equals sign, and separate parameters with &, as in ?color=red&size=m. Having parameters does not make a URL uncrawlable. Prioritize removing parameters that do not change the content, and avoid combinations of filters that greatly increase the number of URLs and waste crawl resources.

If replacing the descriptive text in a URL with an arbitrary string still loads the same page, look beyond the convenience of that flexibility. Check whether it creates multiple URLs pointing to the same content. Google’s indexing documentation also notes the need to manage canonicalization of duplicate pages.

Also, do not use fragments after # to switch page content that needs to be crawled, because Google generally does not support this approach. Its documentation recommends using the History API instead when switching content with JavaScript.

ProcrustesPRProcrustesPRShould I rewrite or update an old article that does not rank?

User- and SEO-friendly URLs: perspectives from across the web

Should HTML pages use .htm, .html, or no file extension?

The available information does not establish that any one option is generally better for SEO. One participant argued that .htm tells users the file type; another said that browsers can handle HTML content correctly without a file extension being added. You also need to consider server configuration: .asp and .aspx, for example, may require additional handling. Do not base the decision solely on how the URL looks.

Should you switch to plus signs out of concern that crawlers might treat hyphens as exclusion operators in the future?

There is no need to switch to plus signs based on this hypothetical scenario. The public discussion raised a concern that crawlers might treat hyphens as exclusion operators in the future, not that such a rule change had already occurred. It also noted that switching to plus signs could hurt visual appeal and readability. Google’s URL structure guidance still recommends using hyphens to separate words where possible, making individual words easier for users and search engines to recognize.

What additional considerations apply when desktop and mobile versions use separate URLs?

If desktop and mobile versions use separate URLs, you need to plan the user experience for each and address the possibility that search engines may treat them as duplicate content. A 2023 Semrush article lists this as an additional cost of using separate URLs. It also presents responsive design as an alternative to consider: both versions can share HTML and a URL, with the layout adapting to the device.

ProcrustesPRWill Reposting Social Content on My Website Cause a Duplicate-Content Penalty?

References

  1. Google 搜尋的網址結構最佳做法 | Google 搜尋中心  |  Documentation  |  Google for Developersdevelopers.google.com — Discusses: Should you switch to plus signs out of concern that crawlers might treat hyphens as exclusion operators in the future?
  2. Google 檢索與建立索引 | Google 搜尋中心  |  Documentation  |  Google for Developersdevelopers.google.com — Source used in the article above.
  3. SEO Web Design: 10+ Tips to Build a Better Websitewww.semrush.com · 2023-07-13T13:44:00Z — Discusses: What additional considerations apply when desktop and mobile versions use separate URLs?
  4. Which of these 3 URL-Rewritings are better SEO friendly URLs?webmasters.stackexchange.com — Discusses: Should HTML pages use .htm, .html, or no file extension?
  5. Should I use a file extension or not?webmasters.stackexchange.com — Discusses: Should you switch to plus signs out of concern that crawlers might treat hyphens as exclusion operators in the future?
  6. Should I use a file extension or not?webmasters.stackexchange.com — Discusses: Should HTML pages use .htm, .html, or no file extension?
  7. SEO Tutorial for Beginners: What to Prioritize (and What Not to)www.semrush.com · 2024-06-18T09:35:00Z — Source used in the article above.
  8. Should I use a file extension or not?webmasters.stackexchange.com — Discusses: Should HTML pages use .htm, .html, or no file extension?

Related articles

How can I tell whether an SEO tactic breaks spam rules?Should I rewrite or update an old article that does not rank?Will Reposting Social Content on My Website Cause a Duplicate-Content Penalty?What types of URLs are there, and what are they used for?What are the common mistakes, limitations, and costs of using subdomains?Can two URLs point to the same website?How to improve on-site content and structure: audit pages first, then address content gaps and internal linksHow can you use multiple domains to build content and traffic while assessing the risks?
ProcrustesPR
ProcrustesPR