URLs are easy to overlook. They are set once, usually by whoever creates the page, and then forgotten — until a redesign or migration reveals hundreds of inconsistent, duplicated or meaningless addresses that can’t be changed without risk.
Good URLs and a clear site structure help visitors understand where they are, help search engines discover and interpret your pages, and make your site easier to maintain for years. This guide covers how to plan both, from individual slugs to the shape of the whole site.
Anatomy of a URL
https://www.example.com/services/web-design/?ref=newsletter#pricing
└─┬──┘ └──────┬──────┘└─────────┬─────────┘└─────┬──────┘└──┬──┘
scheme host path query fragment
- The path is the part you design. It usually has one or more folders and a final slug that identifies the page (here,
web-design). - The query string (after
?) is for parameters such as filters, searches and tracking. It usually shouldn’t define the main content of an indexable page. - The fragment (after
#) points to a section of the page and is not sent to the server.
Our URL encoder breaks any URL into its parts and decodes each query parameter.
What makes a good slug
A slug is the human-readable identifier of a page. Good slugs are:
- Descriptive.
/blog/website-cost/tells people and search engines what to expect;/blog/post-1432/doesn’t. - Short. Long enough to be clear, short enough to read at a glance. Cut filler words when they don’t add meaning.
- Lowercase. URLs can be case-sensitive on many servers, so
/About/and/about/might be different pages. Lowercase everywhere avoids duplicates. - Hyphen-separated. Google’s guidance recommends hyphens rather than underscores to separate words in URLs.
- Free of dates, unless they matter.
/blog/2026/11/seo-tips/ties evergreen content to a date and lengthens the URL. Dates make sense for news; for guides, leave them out. - Stable. Choose slugs you won’t need to change when you update the content. Avoid including numbers like “10 tips” if the list might grow.
Our slug generator converts titles into clean slugs, transliterates accents and can process a list of titles at once.
Stop words
Words like “a”, “the”, “of” and “and” can usually be removed — /how-to-choose-agency/ instead of /how-to-choose-a-development-agency/ — but keep them if removing them makes the slug confusing. Readability comes first.
Keywords in URLs
Including the main topic in a slug helps people understand the link, and search engines can use words in URLs as a minor signal. Don’t stuff extra keywords in: /web-design-agency-web-design-services/ looks spammy and helps nobody.
URLs for a global audience
If your audience reads languages that don’t use the Latin alphabet, you have choices.
- Transliterated slugs (converting characters to Latin letters) are universally compatible and easy to share in any system.
- Native-script slugs — Arabic, Cyrillic, Chinese, Devanagari and others — display normally in modern browsers and can be clearer for people who search in that language. In the raw URL, they are percent-encoded (each character becomes several
%XXsequences), which can look long when copied into some apps.
Both approaches can work for search engines. Pick one per language and use it consistently. The slug generator has a “keep non-Latin letters” option for native-script slugs.
For accented Latin characters such as é, ñ or ü, transliteration (e, n, u) is the most common choice because it avoids encoding issues while staying readable.
Folders and hierarchy
Folders group related pages and show where a page fits:
/services/
/services/web-development/
/services/mobile-apps/
/blog/
/blog/category/seo/
/blog/url-slugs-and-site-structure/
/tools/
/tools/slug-generator/
Guidelines:
- Keep it shallow. Two or three levels is usually enough. Deep nesting creates long URLs and makes reorganisation harder.
- Mirror your navigation, but don’t force every page into a deep tree. A blog post can sit directly under
/blog/even if it belongs to a category. - Avoid folders that don’t exist. If
/services/web-development/exists,/services/should be a real page too, because people and crawlers will try it.
Hub pages and internal linking
Search engines discover and understand pages largely through links. A strong structure uses hub pages — pages that introduce a topic and link to everything related — supported by internal links between related pages.
- A services hub links to each service page; each service page links back and to related case studies and guides.
- A guide links to tools and other guides on the same topic, and back to the hub.
- Important pages should be reachable in a few clicks from the homepage.
- Use descriptive anchor text, such as “our website cost guide”, rather than “click here”.
Pages with no internal links pointing to them — orphan pages — are harder to find, even if they are in your sitemap.
Breadcrumbs
Breadcrumbs show the path to the current page, such as Home › Blog › SEO › URL slugs. They help visitors move up a level and give search engines another clear signal of structure. Add BreadcrumbList structured data so search engines can show the path in results. Our SEO glossary explains structured data and other terms.
Trailing slashes, www and canonical URLs
The same page can often be reached at several addresses:
https://example.com/pageandhttps://www.example.com/page/pageand/page//pageand/page?utm_source=newsletterhttp://andhttps://
To search engines these can look like separate pages with duplicate content. Fix it by:
- Choosing one form — for example, https, with www, with trailing slashes — and using it everywhere.
- Redirecting the others to it with permanent (301) redirects.
- Declaring a canonical URL on each page with a
rel="canonical"tag pointing to the preferred version. Our meta tag generator includes it. - Using only canonical URLs in internal links and your sitemap.
Changing URLs safely
Sometimes URLs must change: a rebrand, a new platform, or a structure that no longer fits. Done carelessly, this loses traffic built up over years. Done carefully, most of it carries over.
- Export every existing URL — from your CMS, sitemap, analytics and Search Console — including pages that receive traffic or links.
- Map each old URL to the most relevant new URL. Don’t redirect everything to the homepage.
- Set up 301 redirects for every mapped URL, ideally at server level.
- Update internal links to point directly to the new URLs.
- Submit the new sitemap and monitor Search Console for errors.
- Keep redirects in place for the long term; old links in emails, bookmarks and other sites keep working.
Our guide on moving off a website builder covers migrations in detail.
Parameters, filters and search pages
Online shops and directories can generate thousands of URL variations from filters and sorting: ?colour=blue&size=m&sort=price. Left alone, these can create huge numbers of near-duplicate pages.
- Decide which filtered views deserve their own indexable pages (for example, “blue dresses” if people search for it) and give them clean URLs.
- For other combinations, use canonical tags pointing to the main category page.
- Don’t link to endless parameter combinations from crawlable links if you don’t want them crawled.
- Internal site search results pages usually shouldn’t be indexed.
Use robots.txt carefully: it controls crawling, not indexing, and blocking pages prevents search engines from seeing canonical or noindex tags on them.
Sitemaps
An XML sitemap lists the URLs you want search engines to find, with optional last-modified dates. It is particularly useful for new sites, large sites and pages that are not well linked. Include only canonical, indexable URLs that return a 200 status. Our sitemap generator creates one from a list of URLs. Large sites can split sitemaps by section and list them in a sitemap index.
A worked example
Imagine a small bakery with a website that grew page by page over several years. Its URLs look like this:
/index.php?page=about
/Our-Cakes.html
/cakes/wedding_cakes_2019
/blog/post.php?id=88
A cleaner structure might be:
/about/
/cakes/
/cakes/wedding-cakes/
/blog/how-to-order-a-wedding-cake/
Each old address gets a 301 redirect to its new equivalent, the navigation and internal links are updated, and the sitemap lists only the new URLs. Visitors see readable addresses, search engines see one clear URL per page, and the bakery’s team can guess where a new page should live.
A planning checklist
- Choose one URL format (https, www or not, trailing slash or not) and redirect the rest.
- Plan top-level sections and keep the hierarchy shallow.
- Write short, lowercase, hyphenated, descriptive slugs.
- Decide how you handle accents and non-Latin scripts.
- Create hub pages for each main topic and link related pages to each other.
- Add breadcrumbs with structured data.
- Set canonical tags on every page.
- Keep a redirect map whenever URLs change.
- Keep your sitemap in sync with real, canonical URLs.
Structure decisions are easiest at the start of a project. If you are planning a new site or a migration, KRA Digital’s web development team can help design a structure that scales. For the fundamentals of search, see our SEO basics guide.
Frequently asked questions
What is a URL slug?
The part of a URL that identifies a specific page, usually at the end of the path. In /blog/url-slugs-and-site-structure/, the slug is url-slugs-and-site-structure.
Should I use hyphens or underscores in URLs?
Hyphens. Google’s guidance recommends using hyphens to separate words in URLs, and they are the widely used convention.
Do keywords in URLs help SEO?
Descriptive words in URLs help people understand a link and can be a minor signal for search engines. Content and links matter far more. Keep slugs readable and avoid stuffing keywords.
Is it bad to change a URL?
Changing URLs carries risk, but it is fine when necessary if you set up permanent 301 redirects from the old address to the most relevant new one, update internal links and update your sitemap.
Can URLs contain non-English characters?
Yes. Modern browsers display them normally, and they are percent-encoded in the underlying URL. Many sites transliterate accented Latin characters and use either transliteration or native scripts for other alphabets, consistently per language.