Understanding SEO-Friendly URLs
A clear and descriptive URL helps visitors understand where a webpage is located and can provide search engines with useful information about the page and its relationship to the rest of the website.
Good URLs are generally simple, readable, descriptive, and stable. A visitor should be able to look at a URL and get a reasonable idea of what the page contains without having to interpret unnecessary numbers, codes, or complicated parameters.
What Is a URL?
A URL, or Uniform Resource Locator, is the address used to identify and access a resource on the web. A URL can point to an HTML page, image, stylesheet, video, PDF, or another type of resource.
https://www.example-web.site/gardening/growing-tomatoes.html
This URL contains the protocol, domain name, directories, and filename that identify the resource.
https://www.example-web.site
/gardening
/growing-tomatoes.html
For SEO, the path portion of the URL is especially useful for creating understandable addresses that reflect the organization and content of the website.
URLs and SEO
Search engines can use URLs as one of many sources of information about webpages. Descriptive paths can provide additional context about a page and its relationship to other content on the website.
URLs also appear in browser interfaces, links, copied addresses, search results, analytics reports, and other places where readable wording can help people recognize a page.
A descriptive URL alone will not cause a page to rank highly. Its primary advantage is clarity and organization, which also makes the website easier for search engines to process and understand.
Use Descriptive URLs
Use words that briefly describe the page instead of relying on arbitrary numbers or identifiers when a readable address is practical.
A descriptive URL provides useful information:
https://www.example-web.site/gardening/growing-tomatoes.html
A URL containing an unrelated identifier provides less information:
https://www.example-web.site/page.php?id=48372
Dynamic URLs and identifiers are not automatically bad for SEO, but human-readable addresses are usually easier for visitors to recognize, remember, and share.
Use Lowercase URLs
Using lowercase letters consistently helps avoid confusion and makes URLs easier to type and maintain.
https://www.example-web.site/gardening/growing-tomatoes.html
Depending on the web server and the part of the URL involved, uppercase and lowercase characters may be treated differently. Two addresses that differ only by capitalization can potentially identify different resources.
/gardening/growing-tomatoes.html
/Gardening/Growing-Tomatoes.html
Choosing lowercase filenames and directories from the beginning provides a simple and consistent naming convention.
Separate Words with Hyphens
When multiple words are needed in a URL, hyphens provide a clear way to separate them.
/gardening/growing-tomatoes.html
Avoid running several words together when doing so makes the address difficult to read:
/gardening/growingtomatoes.html
Underscores can be used in URLs, but hyphens are generally the preferred separator for words in descriptive web addresses.
/gardening/growing-tomatoes.html
Use a Logical Directory Structure
Directories can organize related pages into understandable groups. A logical structure helps visitors recognize how a page relates to a broader topic.
/gardening/tomatoes/growing-tomatoes.html
/gardening/tomatoes/watering-tomatoes.html
/gardening/tomatoes/harvesting-tomatoes.html
The shared path shows that all three pages belong to the gardening and tomato topics.
Directory structures should reflect useful organization rather than creating extra levels simply to add words to a URL.
/gardening/vegetables/tomatoes/guides/beginners/how-to/growing-tomatoes.html
If those directory levels do not serve a real organizational purpose, the simpler structure will usually be easier to maintain and understand.
Keep URLs Simple
URLs should contain enough information to identify the resource without unnecessary words, repeated directory names, session identifiers, or other clutter.
A simple URL might be:
https://www.example-web.site/gardening/tomato-care.html
An unnecessarily complicated address might be:
https://www.example-web.site/gardening/pages/articles/gardening-tomato-care-information-page.html
Do not remove useful words merely to make a URL extremely short. The goal is clarity rather than the smallest possible number of characters.
URL Parameters
URL parameters pass additional information as part of an address and commonly appear after a question mark.
https://www.example-web.site/products.html?category=garden&sort=price
Parameters are useful and sometimes necessary for filtering, sorting, tracking, searching, and dynamic websites. Their presence does not automatically make a URL unsuitable for search engines.
Problems can occur when many parameter combinations produce substantially the same content or create an extremely large number of URLs. Website architecture, canonical URLs, and appropriate crawling controls can help manage these situations.
Do not remove required parameters merely to make an address look cleaner if doing so changes how the website functions.
Keep URLs Stable
Once a useful webpage has an established URL, avoid changing the address without a good reason. Other websites may link to it, visitors may bookmark it, and search engines may already know the page by that address.
For example, changing:
/gardening/growing-tomatoes.html
to:
/gardening/how-to-grow-tomato-plants.html
simply because the second address seems slightly more optimized can create unnecessary work and disruption.
A stable URL that clearly identifies the content is usually more valuable than repeatedly changing addresses in search of a theoretically perfect URL.
Changing Existing URLs
Sometimes a URL genuinely needs to change because a website is reorganized, pages are renamed, content is consolidated, or the site's technology changes.
When a page permanently moves to a new address, the old URL should normally redirect visitors and search engines to the appropriate new URL using a permanent server-side redirect.
Old:
/gardening/tomatoes.html
New:
/gardening/growing-tomatoes.html
Internal links should also be updated to point directly to the new address rather than relying indefinitely on redirects.
Avoid deleting established URLs and leaving visitors with a missing page when equivalent content is available at a new location.
URL Fragments
A URL can contain a fragment identifier beginning with # that points to a particular location within a document.
https://www.example-web.site/gardening/growing-tomatoes.html#watering
The fragment is normally used by the browser to locate content within the page and is not sent to the web server as part of the HTTP request.
<h2 id="watering">Watering Tomato Plants</h2>
Descriptive fragment identifiers make section links easier to understand and maintain. They are especially useful for long tutorials, reference pages, tables of contents, and links directly to specific information.
Common URL Mistakes
| Mistake | Better Approach |
|---|---|
| Meaningless filenames | Use descriptive words when practical. |
| Inconsistent capitalization | Use lowercase filenames and directories consistently. |
| Words run together | Separate words with hyphens. |
| Excessive directory levels | Create directories that represent useful content organization. |
| Unnecessary words and repetition | Keep paths clear and reasonably concise. |
| Changing established URLs frequently | Keep useful URLs stable whenever possible. |
| Moving a page without redirecting it | Use an appropriate permanent redirect when content moves. |
SEO-Friendly URL Examples
The following examples show how clear URLs can communicate both the subject of a page and its place within a website.
| Page | Example URL |
|---|---|
| Growing Tomatoes | /gardening/growing-tomatoes.html |
| Container Gardening | /gardening/container-gardening.html |
| Garden Tools | /gardening/garden-tools.html |
| Watering Tomatoes | /gardening/tomatoes/watering-tomatoes.html |
| Harvesting Tomatoes | /gardening/tomatoes/harvesting-tomatoes.html |
There is no single required URL structure for every website. Choose a logical convention that fits the site's content, then apply it consistently.
Best Practices
- Use descriptive words that help identify the page when practical.
- Use lowercase filenames and directory names consistently.
- Separate words with hyphens.
- Organize related content with meaningful directories.
- Keep URLs understandable without removing useful information merely to make them shorter.
- Avoid unnecessary directory levels, repeated words, and complicated identifiers.
- Use URL parameters when the website genuinely requires them.
- Keep established URLs stable whenever possible.
- Use appropriate permanent redirects when pages permanently move.
- Update internal links when URLs change.
- Use descriptive fragment identifiers for links to sections within a page.
- Choose a URL convention and apply it consistently throughout the website.
Summary
SEO-friendly URLs are clear, descriptive, logically organized, and stable. Lowercase filenames, hyphen-separated words, useful directory structures, and understandable page names make addresses easier for visitors to recognize and can provide search engines with additional context about website content.
Avoid changing established URLs merely to make small SEO improvements. Plan a sensible structure, use it consistently, and redirect old addresses when pages genuinely need to move. Next, we will look at how internal links connect related pages and help visitors and search engines navigate a website.
