URL Structure Best Practices for Small Business Websites
Every page on your website has an address, and most owners never think about it until something breaks: a page gets renamed, an old link stops working, or Search Console shows the same page under three slightly different URLs. A little planning up front avoids all of that.
Google's own documentation is refreshingly simple on this topic. It asks for URLs that use readable words, consistent formatting and as few unnecessary parameters as possible. The W3C adds the most important rule of all: once a URL is published, keep it working. This guide turns that advice into practical choices for a small business site: how to write slugs, how to group pages into folders, what to do about trailing slashes and capital letters, how to handle parameters, and how to change a URL safely when you really have to.
Key facts
- - — Google recommends hyphens, not underscores, to separate words in URLs
- Aa — Google's URL handling is case sensitive, so pick one case and stick to it
- # — Fragments: Google Search generally doesn't support them for changing page content
- 1 — URL per piece of content is the goal Google's starter guide sets for duplicates
What a URL Is Made Of
MDN's guide to URLs breaks an address into a few parts. Take https://www.example.com/services/web-design/?ref=newsletter#pricing:
- Scheme (
https): the protocol the browser uses to request the page. - Domain (
www.example.com): which web server is being asked. A port number can follow it, but it is normally left out because the standard ports are used. - Path (
/services/web-design/): where the page lives on that server. This is the part you control most. - Parameters (
?ref=newsletter): extra key-value pairs sent to the server. MDN notes that each web server has its own rules for them. - Anchor or fragment (
#pricing): a jump to a spot on the page. MDN points out that it is never sent to the server.
Most of the decisions in this guide are about the path, with some care needed for parameters and fragments. MDN also recommends what it calls semantic URLs: addresses made of words that describe the page, so a person can tell what they will get before they click.
Write Slugs People Can Read
The slug is the last, page-specific part of the path, such as web-design or roof-repair-cost. Google's URL structure documentation says, "When possible, use readable words rather than long ID numbers in your URLs." Its SEO Starter Guide makes the same point with an example: /pets/cats.html is helpful, while a path of random characters is "less helpful for users." The starter guide also notes that parts of the URL can be shown in search results as breadcrumbs, so the words you choose may be seen before anyone visits.
Practical rules for slugs
- Use hyphens between words. Google recommends hyphens instead of underscores, and adds that "for historical reasons" it doesn't recommend underscores. Avoid running words together, too:
emergencyplumberis harder to read thanemergency-plumber. - Use lowercase. Google says its URL handling is case sensitive, so
/Services/and/services/are different URLs. Its advice is to convert all text to the same case. - Use your customers' language. Google suggests words in your audience's language, transliterated where that applies. Characters outside the ASCII range must be percent-encoded in the actual URL; most systems do this for you.
- Keep it short and specific. Drop filler words that add nothing, but don't strip the slug down to something cryptic.
/blog/choose-web-host/works;/blog/p123/doesn't tell anyone anything. - Leave out details that will change. Years, prices, "new" and staff names make a slug go stale. More on that below.
Google's starter guide is honest that URLs are mainly for people. Readable slugs make links easier to trust and share, but don't expect a keyword in the URL to rank a weak page.
Group Pages Into a Simple Folder Structure
Folders (directories) in the path show how your site is organised. A typical small business site needs only a few:
/services/web-design/
/services/seo/
/blog/url-structure-best-practices/
/about/
/contact/Google's starter guide recommends grouping topically similar pages in directories when you have more than a few thousand URLs, because it can help Google learn how often the URLs in each directory change. Most small sites are far smaller than that, so the main benefit is clarity: visitors and you can see where a page belongs, and breadcrumbs follow naturally.
Keep the hierarchy shallow
Two levels are usually enough. Deep paths such as /services/residential/plumbing/emergency/24-hour/ are hard to read and harder to keep stable, because every level is a category you might rename later. The same guide also says not to drop everything and reorganise an existing site just for this. If your current structure works, leave it alone.
Trailing Slashes, Case and the www Question
Small formatting differences create duplicate URLs. To a browser, /about, /about/, /About/ and http://example.com/about/ can all show the same page, but search engines may treat each one as a separate URL. Google's Search Central blog post "To slash or not to slash" explains that URLs with and without a trailing slash are treated as different URLs, with one exception: the bare domain root, where both forms are the same.
The fix is the same in every case:
- Pick one version of each choice: trailing slash or not, lowercase,
https, and eitherwwwor nowww. - Redirect the others to it with a permanent (301) redirect, so every variant ends up at one address.
- Use a canonical tag where a redirect isn't possible. Google's starter guide recommends redirecting non-preferred URLs to the preferred one, or using
rel="canonical"if you can't redirect. - Link consistently. Use the chosen form in your menus, internal links and XML sitemap so you aren't creating the variants yourself.
Whether you choose the slash or not matters far less than choosing once and applying it everywhere.
Parameters, Fragments and Other Traps
Parameters are useful for things like search results, filters and campaign tracking, but they are the most common source of messy URLs.
Format parameters the standard way
Google asks for the common encoding: an equal sign between each key and value, and an ampersand between parameters, as in ?color=blue&size=large. For multiple values of one key, it suggests a separator such as a comma.
Trim the ones that don't change the page
Google recommends shortening URLs by removing parameters that don't change the content. Its list of common problems includes:
- Session IDs in URLs. Google says to avoid them where possible and to consider cookies instead.
- Sorting and referral parameters that produce many URLs for the same content.
- Additive filtering, where every combination of filters creates another slightly different list.
- Infinite calendars. Google suggests a
nofollowattribute on links to dynamically created future calendar pages. - Broken relative links that keep adding path segments. Google's fix is root-relative links (starting with
/) instead of parent-relative ones.
For problem URLs like these, Google suggests considering robots.txt to block Googlebot from them, particularly dynamic URLs such as internal search results.
Don't load content through fragments
Google says not to use fragments to change the content of a page, because Google Search generally doesn't support URL fragments. If a JavaScript site shows different content at different addresses, Google recommends the History API so each view has a real path. Fragments are fine for jumping to a heading on the same page.
Choose URLs That Never Need to Change
In "Cool URIs don't change," Tim Berners-Lee wrote that "A cool URI is one which does not change," and that URIs don't change on their own: people change them. The page is from the late 1990s and some of its technical examples are dated, but the core advice holds up. It says that designing a URL mostly means leaving information out.
Things the W3C page warns against putting in the name include:
- Author names, because pages get new owners.
- Status words such as "draft," "old" or "latest."
- File extensions and software details such as
.php,.htmlorcgi, which change when you switch platforms. - Subjects that may be reclassified, since a topic name binds you to one way of organising the site.
For a small business, that translates into a few habits. Use /services/seo/ rather than /seo-services-2026.php. Don't put a price or a team member's name in a slug. Prefer clean paths without extensions, which most modern platforms and a simple rewrite rule can provide.
When you must change a URL
Sometimes a rename is unavoidable, such as a rebrand or a merged service. When it happens, add a 301 redirect from the old URL to the new one, update your internal links and sitemap so they point straight at the new address, and test the old URL to confirm it lands in one hop. Keep those redirects in place long term, since old links in emails, bookmarks and other websites don't expire.
A Quick URL Checklist
- Slugs use readable words, lowercase letters and hyphens.
- No dates, prices, staff names or file extensions in slugs unless they truly won't change.
- A shallow folder structure that matches how customers think about your services.
- One chosen version for https, www, trailing slash and case, with 301 redirects from the others.
- Canonical tags where duplicates can't be redirected.
- Only parameters that change the content; no session IDs in URLs.
- No content loaded through
#fragments. - Internal links and the XML sitemap use the final, preferred URLs.
- Every renamed page has a 301 redirect from its old address.
Sources
- Google Search Central: URL structure best practices for Google Search
- Google Search Central: SEO Starter Guide
- Google Search Central Blog: To slash or not to slash
- MDN Web Docs: What is a URL?
- W3C: Cool URIs don't change (Tim Berners-Lee)
Related reading
Frequently asked questions
Should I use hyphens or underscores in URLs?
Hyphens. Google's URL structure documentation recommends hyphens to separate words and says it doesn't recommend underscores, for historical reasons.
Does it matter whether my URLs end with a slash?
Not which one you pick, but you should pick one. Google treats URLs with and without a trailing slash as different URLs (except the domain root), so choose a version and 301-redirect the other to it.
Will putting keywords in my URL help me rank?
Don't count on it. Google recommends readable words because they help people, and parts of the URL can appear as breadcrumbs in results. A descriptive URL won't make up for a page that doesn't answer the search.
Want clean URLs from day one?
Tell me about your site and I'll send a free, no-obligation quote for a build with a tidy URL structure, redirects and canonical tags set up properly.
Get a free quote