Key takeaways
- Good URL structure is simple: readable words, hyphens between words, one letter case and as few parameters as the page needs.
- Google says it “generally doesn’t look at the structure of URLs” to work out the structure of a site. Internal links do that job, not folders in the address.
- Directories still help on larger sites, because grouping similar pages lets Google learn how often each section changes.
- Keywords in the URL path alone have “hardly any effect” on rankings, according to Google’s own Starter Guide. Write URLs for people.
- Change working URLs only for a real reason, and when you do, map every old URL to its new one and use permanent server-side redirects.
URL structure is one of the first things people ask me about when they plan a new site or a redesign, and one of the most misunderstood. When I work on SEO website structure, I treat URLs as a clean, stable address system that people and crawlers can read easily, not as the place where rankings are won. That distinction saves wasted effort and avoidable traffic drops.
This guide is platform-neutral and works for any CMS, shop system or hand-built site. If your site runs on WordPress and you want the exact settings, I cover them in my guide to WordPress permalinks and custom URLs.
I first published this article in 2025 and have rewritten it to stick to what Google documents, with the claims I could not support removed.
What a URL is for
A URL has two jobs. It gives every page one permanent address, and it tells a person, before they click, roughly what they will find. Google’s URL structure guidelines open with exactly that aim: “To help Google Search (and your users) better understand your site, we recommend creating a simple URL structure”. The same page adds a warning that matters more than any style rule: if your URLs don’t meet its criteria, “Google Search will likely crawl your site inefficiently”.
A good URL is one you never have to think about again: readable on day one and still correct five years later.
Readable words and hyphens
Google’s first recommendation is plain: “When possible, use readable words rather than long ID numbers in your URLs.” Its example contrasts /wiki/Aviation with an index.php address full of numbers and random characters. Only the first tells you what the page is about.
The SEO Starter Guide explains why this matters in search results: “Parts of the URL can be displayed in search results as breadcrumbs”, and Google learns those breadcrumbs from the words in the URL. A path like /pets/cats.html is useful to the person scanning results. A path of random identifiers is, in Google’s words, “less helpful for users”.
The rules I apply to every new URL:
- Use hyphens between words. Google recommends “using hyphens (-) instead of underscores (_) to separate words in your URLs”, and its examples also reject words run together.
- Use words in your audience’s language. Google says non-ASCII characters should be percent encoded.
- Describe the page, not the date or campaign. Words that go out of date force a URL change later.
| Pattern | Example | Why |
|---|---|---|
| Readable words with hyphens | /summer-clothing/ | Clear word boundaries, Google’s recommended form |
| Underscores | /summer_clothing/ | Google recommends hyphens instead |
| Words run together | /greendress | No word boundary for people or crawlers |
| IDs and random strings | /index.php?topic=42&area=3a5e… | Tells the reader nothing about the page |
Parameters, letter case and fragments
Most URL problems I find in audits come from a system generating more addresses than there are pages. Google’s guidelines cover the three usual causes.
Parameters
Parameters are the key=value pairs after the question mark. They are fine for filters if they use the standard format, an equal sign between key and value and an ampersand between pairs. The problem is volume. Google says “Overly complex URLs, especially those containing multiple parameters, can cause problems for crawlers”, because combinations of filters, sorts and tracking values can multiply into huge numbers of URLs showing the same or similar content. Its advice is: “Whenever possible, shorten URLs by trimming unnecessary parameters (meaning, parameters that don’t change the content).” It also says: “Wherever possible, avoid the use of session IDs in URLs and consider using cookies instead.”
Letter case
“Google Search’s URL handling is case sensitive”, so /Shoes and /shoes are two different URLs to Google. Use lower case everywhere, serve one version and link to it consistently.
Fragments
The part after a # is not a separate page for Google. The guidelines say: “Don’t use fragments to change the content of a page, as Google Search generally doesn’t support URL fragments.” If a JavaScript site loads different content per view, Google points to the History API instead, so each view gets a real URL.
Directories as grouping
Folders in a URL, such as /services/ or /guides/, are a way of grouping similar pages. On a small site they make little difference to Google. On a large one they can help. The Starter Guide says that on sites with more than a few thousand URLs, “how you organize your content may have effects on how Google crawls and indexes your site”, and that “using directories (or folders) to group similar topics can help Google learn how often” the URLs in each directory change.
A shop with products in one folder and guides in another is a good example: products may change daily, guides rarely. The same guide is honest about the limits, though: “Don’t drop everything and start reorganizing your site right now though”, because search engines will likely understand your pages as they are.
My rule of thumb is one or two levels of folders that match how a customer would describe the business, and no folders that exist only to hold keywords.
What URL structure does not do
This is the part most older advice, including the first version of this article, got wrong. A URL’s folders do not tell Google how your site is organised. Google’s guide to ecommerce site structure says it directly: “Google generally doesn’t look at the structure of URLs to work out the structure of a site. Instead, it analyzes the linkages between pages to gain insights about the relative importance of different pages on a site.”
In other words, what matters is how your site links to a page, not how short its path is. A product five folders deep that is linked from the main navigation and several category pages gets more weight from Google than a page sitting at the root that nothing links to. If you want to change how Google sees your site’s structure, change your internal links and navigation.
Keywords in the URL are the second myth. The Starter Guide says: “From a ranking perspective, the keywords in the name of the domain (or URL path) alone have hardly any effect”, beyond appearing in breadcrumbs. I still use descriptive words because they help people, but I never rename a ranking page just to add a keyword to its path.
When to change URLs, and how
Changing a working URL has a cost. Links from other sites point at the old address, and Google’s guide to site moves with URL changes warns that “the visibility of your content in Search may fluctuate temporarily during the move.” So I only change URLs for a real reason: the address is misleading or wrong, the system generates duplicates, the site is moving to a new domain or platform, or two pages are being merged into one.
When a change is worth making, the process is the same on any platform:
- List every old URL and decide where each one should go. Google calls this mapping: “It’s important to map your old site’s URLs to the URLs for the new site.”
- Set up server-side permanent redirects from each old URL to its new one. Google recommends “HTTP permanent redirects if possible, such as 301 and 308”.
- Change your internal links, navigation and canonical tags to the new URLs, so the site does not rely on redirects to work.
- Submit a sitemap with the new URLs in Search Console and watch traffic shift from old to new addresses.
- Keep the redirects “for as long as possible, generally at least 1 year.”
Google’s redirects documentation explains why the type of redirect matters. With a permanent redirect, Google shows the new target in search results, and “the indexing pipeline uses the redirect as a signal that the redirect target should be canonical.” A temporary redirect keeps the old page in results, so use a permanent one for a permanent change.
The mistakes I see most often are redirect chains, redirects that send everything to the home page and internal links left on old addresses. My notes on fixing 404s with the right redirects go through those in more detail, and for a small-business view of planning URLs and site sections together, see URL structure and site architecture for SMEs.
FAQ
Does URL structure affect rankings?
Not much directly. Google says keywords in the domain or URL path alone have hardly any effect. A clean structure matters more for crawling, for avoiding duplicate URLs and for how the address looks in search results.
Should I use hyphens or underscores in URLs?
Hyphens. Google recommends hyphens instead of underscores to separate words, because hyphens clearly mark where one word ends and the next begins.
Do URL folders tell Google how my site is organised?
No. Google says it generally doesn’t look at URL structure for that and analyses the links between pages instead. Folders can still help Google learn how often sections of a large site change.
Should I change my existing URLs to make them shorter?
Usually not, if they work and are readable. Change them only for a real reason, and then use permanent server-side redirects from every old URL to its new one, keeping them for at least a year.