Skip to the content
Start free

Dynamic URL

A dynamic URL is a web address whose page is built on request from values in the address itself, usually a query string after a question mark, such as /shop?colour=red&sort=price. A static URL, such as /shop/red-kettles/, points at one fixed page. Search engines can crawl both. Dynamic URLs only cause trouble when the same content ends up at many different addresses.

What is a dynamic URL? #

Every URL has parts. In a dynamic one, the part after ? holds key-value pairs joined by &. Each pair is a URL parameter. The site’s code reads them and builds the page: which products to show, in what order, in which language.

Shops, booking sites, search pages and most content management systems make them. A WordPress post can live at /?p=123 until someone sets tidy permalinks.

Parameters fall into 2 kinds:

  • Ones that change the content: a product ID, a category, a language, a page number.
  • Ones that do not: session IDs, tracking tags such as UTM parameters, sort orders that show the same items in a new order.

Do dynamic URLs hurt SEO? #

Not by themselves. In its post on dynamic versus static URLs, Google said it can crawl dynamic URLs and read their parameters. It called the idea that you must keep to fewer than 3 parameters a myth. It also advised against rewriting dynamic addresses to look static, because rewrites are hard to maintain and can hide which parameters matter. It said it is safer to serve the original dynamic URL.

The real problem is volume. Google’s URL structure guide says overly complex URLs, especially with many parameters, can cause problems for crawlers. Filters that combine multiply addresses fast. Googlebot may then use far more bandwidth than needed and leave some of your content unindexed. That is wasted crawl budget and a source of duplicate content.

Why does it matter for AI answers? #

An AI crawler meets the same maze. If one page is reachable at 30 addresses, a bot may fetch the same text many times and miss pages deeper in the site. When an assistant gives a citation, it may link a long address full of tracking tags or a session ID that has expired. One clean address per page gives every machine, search or AI, one copy to read and one link to quote.

How does it work? #

Google’s guide sets out the format it prefers:

  • Use = between a key and its value, and & to add more pairs.
  • For several values of one key, use a character that does not clash with the URL standard, such as a comma.
  • Avoid session IDs in URLs where you can, and use cookies instead.
  • Do not use fragments (the part after #) to change page content. Google Search generally does not support them. For JavaScript changes, use the History API. See JavaScript SEO.
  • Trim parameters you do not need.

Common mistakes #

  • Every filter is crawlable. Colour, size, price and brand filters on a shop can make thousands of addresses. Google’s faceted navigation guide suggests blocking filter addresses you do not need in search with robots.txt, keeping filters in a fixed order, and returning a 404 when a filter combination has no results. It calls canonical and nofollow generally weaker options over the long term. More on faceted navigation.
  • Session IDs in links. Each visitor, and each bot, gets a fresh set of addresses for the same pages.
  • Tracking tags in internal links. UTM tags belong on links from emails and adverts, not in your own internal links.
  • No canonical tag. Without a canonical tag, Google picks a version for you. Search Console may then report duplicate without user-selected canonical.
  • Half-done rewrites. Google’s post warns that rewrite rules must be updated whenever a new parameter is added, or they start hiding parameters again.
  • Internal search pages left open. Google’s guide suggests using robots.txt to block dynamic URLs such as search result pages and endless calendars.

A worked example #

A UK shop sells 200 kettles. Its category page lets shoppers filter by 8 colours and 5 brands and sort 4 ways. Those combine into 8 x 5 x 4 = 160 addresses for one category, before price bands and page numbers. Each carries the same product names and much the same text. On top of that, the shop adds a sid= session code to every link.

The fix takes 5 steps:

  1. Move the session to a cookie, so sid= leaves every link.
  2. Give each filtered or sorted page a canonical tag pointing at the main category address.
  3. Keep a few filters that people really search for, such as one brand, as real pages with their own text and a clean address.
  4. Block the internal search path in robots.txt.
  5. List only the clean addresses in the XML sitemap.

Google’s 2008 post shows the same idea at small scale: an address carrying language, answer, session and query values can be cut to just language and answer, keeping only the values that change the content.

How do I check my site? #

Then read your server logs. Log file analysis shows how many bot visits go to parameter addresses rather than real pages. A large share is a sign of a crawl problem.

Questions #

Should I turn every dynamic URL into a static one? #

No. Google advises against rewrites you cannot maintain. For new sites, clean SEO-friendly URLs are easier for people to read and share. For old ones, tidy parameters and use canonicals first.

Is there a limit on parameters? #

Google said in 2008 there is no limit on the number. Fewer is still easier for crawlers and people.

Does page 2 of a list count? #

Yes, ?page=2 changes the content. See pagination for how to handle it. More in our technical SEO topic.

Sources #

Updated 24 November 2026 by URSY.com.

Cite this page: Dynamic URL. URSY. Updated 26 November 2026. https://ursy.com/wiki/dynamic-url/ · Section links

Tools for this

All 871 wiki entries, A to Z →