How to Optimize Your URL Structure: SEO Best Practices for 2026
Sections
- Why URL structure still matters in 2026
- HTTPS is no longer optional
- Descriptive URLs: clarity beats keyword stuffing
- Use the language of your target market
- Use hyphens instead of underscores
- Keep URLs lowercase
- Avoid special characters when possible
- Use URL parameters only when they are necessary
- Build a logical folder structure
- Subdomain or subfolder: which is better?
- File extensions in URLs: keep them or remove them?
- Keep URLs stable over time
- Plan redirects carefully
- Use canonical URLs correctly
- International SEO: give every language version its own URL
- URL structure for ecommerce websites
- Internal links should point to the canonical URL
- Trailing slash: with or without?
- XML sitemaps should reflect your real URL strategy
- Common URL structure mistakes
- Practical URL checklist for 2026
- Examples of good and bad URLs
- Conclusion: good URLs are simple, stable, and understandable
A good URL is more than a technical address. It is part of your website’s user experience, information architecture, and SEO foundation. Ideally, a person should be able to look at a URL and understand what the page is about before clicking it. Search engines should also be able to crawl, interpret, and categorize that URL without unnecessary friction.
In 2026, SEO-friendly URLs are not about forcing as many keywords as possible into a page address. A strong URL structure is simple, stable, readable, and technically clean. It helps users, search engines, analytics tools, and your own team understand how your website is organized.
A good URL should answer three basic questions:
- Where am I on the website?
- What is this page about?
- Is this a trustworthy and stable address?
Example:
Good:
https://www.example.com/seo/url-structure
Less helpful:
https://www.example.com/index.php?id=8472&cat=seo&session=abc123
The first URL is clear and readable. The second one is technical, unclear, and contains unnecessary parameters. These differences may look small, but they matter, especially on large websites, ecommerce stores, blogs, and international sites.
#Why URL structure still matters in 2026
Google does not rank a page only because it has a clean URL. A short and readable URL cannot replace helpful content, strong internal linking, good page experience, or genuine authority. Still, URL structure supports both users and search engines.
A clear URL helps people understand what they are about to click. It can also make links easier to share in emails, messaging apps, social media posts, search results, documents, and presentations. For search engines, a clean URL can make crawling and interpretation easier.
URL structure also matters internally. A consistent system makes it easier to manage content, analyze performance, migrate a website, fix technical SEO issues, and scale your content strategy over time.
The best rule is simple: write URLs for humans first. When URLs are useful for people, they are usually easier for search engines to understand as well.
#HTTPS is no longer optional
HTTPS is not a special SEO advantage anymore. It is the expected standard for modern websites.
HTTPS encrypts the connection between the browser and the website. This protects user data and builds trust. For contact forms, login areas, checkout pages, bookings, accounts, and payment processes, HTTPS is essential.
From an SEO and technical perspective, your website should consistently use HTTPS. That means:
- HTTP versions should redirect to HTTPS.
- The same page should not be available under both HTTP and HTTPS.
- Internal links should point directly to the HTTPS version.
- Canonical tags should use HTTPS URLs.
- XML sitemaps should only include HTTPS URLs.
- Mixed content issues should be fixed.
Bad:
http://www.example.com/services
Better:
https://www.example.com/services
If an older website still has HTTP URLs indexed or linked externally, redirect them permanently to the correct HTTPS versions.
#Descriptive URLs: clarity beats keyword stuffing
A URL should describe the page clearly. That does not mean you should squeeze every possible keyword into it. A good URL is more like a clear sign on a door: it tells people what they can expect behind it.
Good:
https://www.example.com/blog/url-structure-seo
Too much:
https://www.example.com/blog/url-structure-seo-google-ranking-keywords-optimization-search-engine-2026
The second version looks overloaded. It is harder to read, harder to share, and may feel spammy. A better slug focuses on the main topic in a natural way.
For blog posts, landing pages, product pages, and category pages, follow these principles:
- Use meaningful words.
- Match the language your audience uses.
- Keep URLs as short as possible, but as long as necessary.
- Remove filler words when they add no value.
- Avoid internal IDs as the main URL element when a readable slug is possible.
- Use one clear topic per URL.
Example for an ecommerce category:
Good:
https://www.examplestore.com/women/winter-boots
Less helpful:
https://www.examplestore.com/category?id=8392&type=17
The good version is understandable to users and also communicates a logical structure.
#Use the language of your target market
Your URL should match the language and expectations of the audience you want to reach. If a page targets English-speaking users, the URL should usually be in English.
Good for an English audience:
https://www.example.com/guides/clean-coffee-machine
Less appropriate for an English audience:
https://www.example.com/ratgeber/kaffeemaschine-reinigen
This is especially important for international websites. Each language version should have its own URL, so users and search engines can clearly access and distinguish the different versions.
Example:
English:
https://www.example.com/en/clean-coffee-machine
German:
https://www.example.com/de/kaffeemaschine-reinigen
French:
https://www.example.com/fr/nettoyer-machine-cafe
Avoid relying only on browser language detection, cookies, or automatic redirects to serve translated content. Search engines need crawlable URLs for each language or regional version.
#Use hyphens instead of underscores
For new URLs, separate words with hyphens. Hyphens make URLs easier to read and help search engines identify individual words.
Good:
https://www.example.com/seo/url-structure
Not ideal:
https://www.example.com/seo/url_structure
Also less readable:
https://www.example.com/seo/urlstructure
Hyphens are the established standard for readable URLs. Underscores are more common in programming contexts and are generally not the best choice for public-facing page URLs.
If your existing site already uses underscores and performs well, do not change every URL just for this reason. URL changes create migration work and risk. But for new pages and new projects, use hyphens.
#Keep URLs lowercase
URLs can be case-sensitive depending on the server setup. That means these two URLs may technically be treated as different addresses:
https://www.example.com/SEO/URL-Structure
https://www.example.com/seo/url-structure
If both versions are accessible, you may create duplicate content, tracking confusion, and unnecessary crawling complexity. The simplest solution is to use lowercase URLs consistently.
Best practices:
- Use lowercase slugs.
- Link internally to the lowercase version.
- Redirect uppercase variants to the correct lowercase URL.
- Avoid mixed-case category names, product URLs, and blog slugs.
- Keep naming conventions consistent across the whole site.
Good:
https://www.example.com/blog/technical-seo
Less ideal:
https://www.example.com/Blog/Technical-SEO
#Avoid special characters when possible
Modern URLs can technically support many non-ASCII characters. However, special characters often become encoded when copied, shared, or displayed in tools.
For example, a character like é or ü may appear differently once encoded in a browser, analytics platform, CMS, or backlink report.
That does not mean international characters are forbidden. But for most English-language websites, the cleanest approach is to use simple, ASCII-friendly URLs.
Good:
https://www.example.com/cafe-menu
Potentially less convenient when copied or encoded:
https://www.example.com/café-menu
This is not a strict ranking rule. It is a practical usability rule. Clean, simple URLs are easier to share, debug, report, and maintain.
For global websites, define clear transliteration rules and apply them consistently.
#Use URL parameters only when they are necessary
URL parameters are not automatically bad. They are often needed for filtering, sorting, pagination, tracking, product variants, and internal search. The problem starts when parameters create many different URLs with the same or nearly identical content.
Example:
https://www.examplestore.com/shoes?color=black&size=10
This may be useful if the filtered page has real value.
Problematic examples include:
?sessionid=abc123
?timestamp=1712345678
?sort=random
?utm_source=newsletter
Tracking parameters such as UTM tags are useful for campaign measurement, but they should not be used in standard internal links. Internal links should usually point to the clean canonical URL.
For large websites and ecommerce stores:
- Use parameters only when they change the content meaningfully.
- Avoid session IDs in URLs.
- Avoid timestamp-based URLs.
- Do not internally link to tracking URLs.
- Decide which filter combinations are indexable.
- Use canonical tags where appropriate.
- Keep XML sitemaps limited to canonical, indexable URLs.
#Build a logical folder structure
A good URL structure gives users context. This is especially useful on larger websites with blogs, products, categories, help sections, or international content.
Example for a blog:
https://www.example.com/blog/seo/url-structure
Example for an ecommerce store:
https://www.examplestore.com/women/shoes/winter-boots
This kind of structure helps people understand where they are. But do not make URLs unnecessarily deep.
Too deep:
https://www.example.com/resources/marketing/online-marketing/seo/technical-seo/crawling/url-structure/basics
Better:
https://www.example.com/seo/url-structure
A URL does not need to expose every level of your internal organization. It should create orientation, not complexity.
#Subdomain or subfolder: which is better?
A common SEO question is whether a blog, shop, or resource center should live on a subdomain or in a subfolder.
Subdomain:
https://blog.example.com
Subfolder:
https://www.example.com/blog
In many cases, a subfolder is the simpler and more practical choice. It keeps content under the main domain, makes the structure easier to manage, and often creates a clearer user experience.
A subfolder is usually a good fit when the content belongs closely to the main website.
Examples:
https://www.example.com/blog
https://www.example.com/resources
https://www.example.com/shop
A subdomain may make sense when a section is technically, operationally, or functionally separate. For example:
https://app.example.com
https://help.example.com
https://status.example.com
https://developers.example.com
The most important rule is to choose the structure that is easiest to maintain long term. SEO should not be the only factor. CMS setup, hosting, analytics, internationalization, team ownership, and development workflows also matter.
If there is no strong reason for a subdomain, a subfolder is often the better default for editorial or content-driven sections.
#File extensions in URLs: keep them or remove them?
Older websites often use file extensions such as .html, .php, or .aspx.
Example with file extension:
https://www.example.com/services.html
Clean URL:
https://www.example.com/services
For new websites, clean URLs without file extensions are usually the better choice. They look more modern, are easier to read, and are less tied to a specific technology stack. If you change your CMS or backend later, the URL can remain the same.
However, do not remove file extensions from an existing site without a good reason. If old .html URLs are already indexed, linked, and performing well, changing them may create unnecessary migration risk.
Practical rule:
- New projects: use clean URLs without file extensions.
- Existing successful URLs: do not change them just to make them look nicer.
- If you do change them: use proper permanent redirects.
- Never let old URLs return 404 errors without a replacement strategy.
#Keep URLs stable over time
A URL should be treated as a long-term address. Every URL change can affect backlinks, internal links, bookmarks, analytics, social shares, and search performance.
Only change URLs when there is a clear reason, such as:
- A website migration
- A new information architecture
- Consolidating duplicate content
- Removing outdated categories
- Moving from HTTP to HTTPS
- Internationalizing the site
- Fixing serious technical problems
Weak reasons include:
- The new slug looks slightly nicer.
- You want to add another keyword.
- The page title changed slightly.
- You want to replace the year in the URL.
Be especially careful with years in blog URLs.
Problematic for evergreen content:
https://www.example.com/blog/seo-tips-2024
Better for regularly updated content:
https://www.example.com/blog/seo-tips
If you publish a new edition every year, a year in the URL can make sense. But if you keep updating one evergreen article, the URL should usually remain timeless.
#Plan redirects carefully
When URLs change, redirects are essential. A redirect sends users and search engines from the old URL to the new one.
Example:
Old:
https://www.example.com/blog/seo-url-tips-2024
New:
https://www.example.com/blog/url-structure-seo
In this case, the old URL should permanently redirect to the new URL.
Best practices:
- Use permanent redirects for permanently moved content.
- Redirect each old URL to the most relevant new URL.
- Avoid redirect chains.
- Update internal links to point directly to the new URL.
- Monitor crawling, indexing, rankings, and traffic after the change.
- Create a full URL mapping before larger migrations.
A common mistake is redirecting all old URLs to the homepage. That is usually bad for users and unhelpful for search engines. A redirect should lead to the closest relevant replacement page.
#Use canonical URLs correctly
Canonical tags help search engines understand which version of a page should be treated as the main version. They are especially useful when similar or duplicate content can be reached through multiple URLs.
Example:
https://www.examplestore.com/shoes/sneakers
https://www.examplestore.com/shoes/sneakers?sort=price
If the sorted version does not deserve to be indexed separately, it can point back to the main category URL with a canonical tag.
Important: canonical tags are hints, not absolute commands. They should support a clean URL strategy, not replace one. Whenever possible, prevent unnecessary duplicate URLs at the technical level.
#International SEO: give every language version its own URL
For multilingual or multi-regional websites, every language or regional version should have its own crawlable URL.
Good examples:
https://www.example.com/en/services
https://www.example.com/de/leistungen
https://www.example.com/fr/services
You can also use country-code domains, subdomains, or subfolders depending on your strategy:
https://www.example.co.uk/services
https://uk.example.com/services
https://www.example.com/en-gb/services
The right choice depends on your business, resources, and technical setup. What matters most is that each version is accessible, consistent, and supported by proper hreflang annotations.
Hreflang helps search engines understand which localized versions belong together.
Examples:
US English:
en-US
UK English:
en-GB
German for Germany:
de-DE
French for France:
fr-FR
You should also provide a visible language or country selector. Do not rely only on automatic redirects based on IP address or browser language, because that can make some versions harder for users and crawlers to access.
#URL structure for ecommerce websites
Ecommerce websites need special attention because categories, filters, sorting options, product variants, pagination, and tracking parameters can create thousands of URL combinations.
A good ecommerce URL strategy should answer these questions:
- Which category URLs should be indexed?
- Which filter combinations have SEO value?
- Which parameters create duplicates?
- How are product variants handled?
- Which URLs belong in the XML sitemap?
- Which URLs should use canonical tags?
- Which URLs are linked internally?
Good category URL:
https://www.examplestore.com/women/winter-jackets
Potentially useful filtered URL:
https://www.examplestore.com/women/winter-jackets/black
Potentially problematic parameter URL:
https://www.examplestore.com/women/winter-jackets?sort=price_asc&session=abc123&view=grid
Not every filtered page should be indexed. If every color, size, brand, price range, sorting order, and layout option creates an indexable URL, the website can quickly generate large amounts of thin or duplicate content.
For ecommerce SEO, the goal is not to create as many URLs as possible. The goal is to control which pages deserve to be crawled, indexed, and ranked.
#Internal links should point to the canonical URL
A clean URL structure is much less effective if your internal links are inconsistent.
Example variants:
https://www.example.com/seo/url-structure
https://www.example.com/seo/url-structure/
https://www.example.com/SEO/url-structure
https://www.example.com/seo/url-structure?utm_source=internal
Choose one canonical version and use it consistently across:
- Main navigation
- Footer links
- Breadcrumbs
- Blog teasers
- Product links
- Related content blocks
- XML sitemaps
- Internal text links
Consistency helps users, search engines, analytics systems, and your own team.
#Trailing slash: with or without?
Whether your URLs end with a trailing slash is less important than consistency.
Both versions can work:
https://www.example.com/blog/url-structure
https://www.example.com/blog/url-structure/
The problem starts when both versions are accessible and show the same content. That creates duplicate URLs.
Choose one version and redirect the other. Then make sure all internal links use the preferred version.
#XML sitemaps should reflect your real URL strategy
Your XML sitemap should include only URLs that are meant to be indexed and are technically clean.
Include:
- Canonical URLs
- Indexable pages
- HTTPS URLs
- Final destination URLs without redirects
- Correct localized versions for international sites
Avoid including:
- Redirecting URLs
- 404 pages
- Non-canonical parameter URLs
- Internal search result pages
- Duplicate versions of the same page
- Pages marked
noindex
An XML sitemap is not a fix for poor internal linking. It helps search engines discover important URLs, but it does not replace a clear site structure.
#Common URL structure mistakes
Many URL problems come from inconsistent rules rather than one bad URL. Common mistakes include:
- Changing URLs after every redesign
- Failing to redirect old URLs
- Mixing uppercase and lowercase URLs
- Letting parameters create too many duplicate URLs
- Linking internally to non-canonical URLs
- Adding unnecessary years to evergreen content
- Creating overly deep folder structures
- Making translated pages hard to access
- Using UTM parameters in internal links
- Including non-indexable URLs in XML sitemaps
- Redirecting all outdated URLs to the homepage
These issues may seem minor on a small website. On a large site, they can create serious crawling, indexing, analytics, and user experience problems.
#Practical URL checklist for 2026
A strong URL should meet these criteria:
- It uses HTTPS.
- It is short but descriptive.
- It explains the page topic clearly.
- It matches the language of the target audience.
- It uses hyphens instead of underscores.
- It is lowercase.
- It avoids unnecessary parameters.
- It is stable over time.
- It fits the website’s information architecture.
- It is linked consistently internally.
- It has one clear canonical version.
- It is redirected properly if changed.
- It only appears in the sitemap if it should be indexed.
- It is readable for humans, not just systems.
#Examples of good and bad URLs
Bad:
https://www.example.com/index.php?page=123&session=abc
Good:
https://www.example.com/services/web-design
Bad:
https://www.example.com/Blog/SEO_URL_Structure_2026_Final
Good:
https://www.example.com/blog/url-structure-seo
Bad:
https://www.examplestore.com/products?id=98765
Good:
https://www.examplestore.com/women/shoes/winter-boots
Bad:
https://www.example.com/english?lang=en
Good:
https://www.example.com/en/
#Conclusion: good URLs are simple, stable, and understandable
The best URL structure is not the most complicated one. It is the one that users can understand quickly and search engines can crawl without unnecessary confusion.
In 2026, the strongest URL strategy is built around clarity. A good URL is readable, logical, stable, and technically clean. It avoids unnecessary parameters, uses hyphens, stays lowercase, follows a consistent structure, and fits the content of the page.
If you are building a new website, define your URL rules early. If you are improving an existing website, be careful. Do not change URLs just because a new version looks slightly cleaner. A stable URL with history, backlinks, and performance is often more valuable than a prettier URL created through an unnecessary migration.
In short: good URLs help users, search engines, analytics tools, and your own team. That is why URL structure remains one of the basic foundations of technical SEO in 2026.