TutorialsKnowledge BaseAbout Start here
Q

Query String

Development 3 min read Knowledge Base entry 17 of 26
Definition

A query string is the part of a URL after the question mark, used to pass extra information to the page.

In plain English

In example.com/shop?colour=blue&size=l, everything after the ? is the query string. It's a list of name=value pairs joined by &.

The page reads those values and changes what it shows — filtering products, remembering a campaign source, jumping to page three of the results.

https://Schemeferdy.comHost (domain)/shopPath?colour=blue&size=lQuery string
The anatomy of a URL. Each part is read by a different layer of the stack.

Why it matters

Query strings are everywhere once you notice them: search results, product filters, pagination, campaign tracking, payment redirects.

They also cause real problems — duplicate content when the same page exists at five URLs, and cache misses that slow a site down. Knowing what they are makes both diagnosable.

How it works

  1. A ? starts itEverything before the ? is the path.
  2. Pairs are joined with &key=value&key2=value2, in any order.
  3. The server or JavaScript reads themAnd responds accordingly.
  4. Special characters get encodedA space becomes %20 or +.

Nothing private goes in a URL

Query strings land in browser history, server logs and referrer headers. Passwords, tokens and personal data belong in a request body.

Watch it in a real build


Tip: use ← and → to move between entries.

The Friday email

One email a week. The thing I'd tell you over coffee.

What changed in WordPress and AI that week, what I'd actually use, and what I'd ignore. Written by me, not summarised by a tool.

  • New tutorials the moment they're published
  • Honest verdicts on tools — including the ones I dropped
  • No sequences, no upsells, one click to leave

41,000+ readers. Unsubscribe in one click.

Free, forever, no signup

Pick a starting point. Have something real by tonight.

Every tutorial is free, complete, and built in real time — including the bits that break. Start where you are, not where a course thinks you should be.