URL structure is the pattern a website uses to build its addresses: which folders exist, how pages are named, and what goes into the path versus the query string. One pattern repeats across every page, so a good decision pays off thousands of times, and a poor one produces cryptic IDs or near-duplicate URLs at the same scale. For the parts of a single address, see URL.
What Google needs before anything else
Google's URL guidance starts with a few requirements. If URLs break them, Google says it will likely crawl the site inefficiently, either far too much or not at all. Google Search Central
- Follow the URL standard. Google supports URLs as defined by IETF STD 66 (RFC 3986). Reserved characters used as data must be percent-encoded; see URL encoding.
- Don't use fragments to change content. Google generally ignores the part after
#, soexample.com/#/potatoesisn't a separate page to it. If JavaScript changes the content, give each view a real URL with the History API. - Use
=and&for parameters. Write?category=dresses&sort=low-to-high, not brackets or double commas. For several values of one key, a comma works:color=purple,pink.
What makes a URL easy to understand
| Do | Instead of |
|---|---|
/wiki/aviation (readable words) |
/index.php?topic=42&area=3a5ebc94 (IDs) |
/summer-clothing (hyphens between words) |
/summer_clothing or /summerclothing |
/lebensmittel/pfefferminz for a German audience |
English words for a German audience |
/shoes and nothing else |
/shoes, /Shoes and /SHOES all returning the page |
/shoes?color=red |
/shoes?color=red&sid=789&ref=nav |
The reasons behind each:
- Readable words tell people what they'll get, and Google can show them as breadcrumbs in results.
- Hyphens mark word boundaries. Google advises against underscores, which often join words into one concept, as in programming names.
- Your audience's language matches how they search. Non-English characters go into links percent-encoded.
- One letter case matters because URLs are case-sensitive: Google treats
/APPLEand/appleas different URLs. - Few parameters keep one page from turning into many addresses.
Group pages in folders
Folders show how pages relate: /guides/coffee/cold-brew sits under coffee guides. On sites with more than a few thousand URLs, folders also help Google crawl. If /policies/ rarely changes and /promotions/ changes weekly, Google can learn that and visit each at a different rate. Google SEO Starter Guide The site architecture article covers the bigger picture.
For sites aimed at several countries, Google suggests a structure that makes each country easy to tell apart: a country domain such as example.de, or a subfolder such as example.com/de/. Pair it with hreflang.
How much URLs affect rankings
Less than many guides suggest. Google says keywords in the domain or URL path alone have hardly any effect beyond appearing in breadcrumbs. It also says there's no need to drop everything and reorganize a site: search engines will likely understand your pages as they are.
The real gains are elsewhere: people can read a link and know where it leads, and a clean structure keeps Google from wasting visits on duplicates.
Problems that multiply URLs
Most URL structure trouble is too many addresses for the same content. Google names these causes:
- Stacked filters. "Hotels on the beach" plus "with a fitness center" plus "value rates" creates a new URL for every combination. Googlebot only needs a few lists to reach each hotel page.
- Irrelevant parameters. Referral codes, sort orders and session IDs create new URLs without new content. Keep session IDs out of URLs and use cookies instead.
- Endless calendars. A calendar that links to every next month forever gives crawlers an infinite space. Add
nofollowto links to dynamically created future pages. - Parent-relative links. A link like
../../category/stuffon the wrong page can create bogus paths without end, if your server returns a normal page for addresses that don't exist. Use root-relative links such as/category/stuff.
If Google is already crawling such URLs, Google suggests blocking them in robots.txt, especially internal search results and filter or sort combinations. For pages that should stay reachable but share one canonical, see URL canonicalization.
Changing URLs that already exist
A cleaner scheme isn't worth much if the move breaks links. When you do change URLs:
- Map each old URL to its new one.
- Set up permanent server-side redirects (301) from old to new; Google shows the new URL in results.
- Update internal links, canonical tags and your sitemap to the new URLs.
- Watch Google Search Console for 404 errors on old URLs you missed.
For new sites and new sections, decide the pattern once, write it down, and apply it everywhere.