Skip to the content
Start free

URL

A URL (Uniform Resource Locator) is the web address of one page or file, such as https://www.example.com/blog/green-tea/. MDN calls it the address of a unique resource on the internet. Search engines and AI tools store, rank and quote pages by their URL, so a good one is short, readable, lower case and the same every time.

What is a URL? #

It is the full address you see in the browser bar. The rules for writing one are set by the web standard RFC 3986, also called STD 66, from January 2005. Google’s guide to URL structure says Google Search supports URLs as that standard defines them. A URL is not the same as a domain name: the domain is one part of it, and DNS turns the domain into a server address.

What are the parts of a URL? #

RFC 3986 shows the parts with the example foo://example.com:8042/over/there?name=ferret#nose. On a normal web page they look like this:

Part Example What it does
Scheme https The protocol the browser must use
Authority (domain and port) www.example.com The server. The port is usually left out: 80 for HTTP, 443 for HTTPS
Path /blog/green-tea/ The page on that server
Query (parameters) ?colour=green&size=large Extra key and value pairs, joined with &
Fragment #brewing A spot inside the page

MDN notes that the fragment, the part after #, is never sent to the server. Google says Search generally does not support fragments, so do not use them to change what a page shows. If JavaScript changes the content, Google points to the History API instead. Fragments are still useful as a citation anchor that takes a reader to one heading.

Each different address can be treated as a different page. If one page answers at four addresses, Google has to work out which to keep: that is duplicate content, settled by a canonical. Google’s URL guide also asks for readable words, not long ID numbers, where possible. A readable URL shows in the search results and tells people what they will get before they click. MDN adds that some search engines can use the words in a URL to understand the page.

Why does it matter for AI answers? #

AI answers show their sources as links. Google’s page on AI features says AI Overviews and AI Mode show links to pages, and a page must be indexed to be one of them. A clear, steady URL is easier for a person to trust in an answer, and it keeps working when an assistant quotes it months later. A URL that changes, carries a session code or breaks becomes a dead citation. Your llms.txt file lists URLs too, so they must be the final, canonical ones.

Which characters are allowed? #

RFC 3986 splits characters into two groups:

  • Unreserved: letters, digits, hyphen, full stop, underscore and tilde. These can be used as they are.
  • Reserved: : / ? # [ ] @ and ! $ & ' ( ) * + , ; =. These mark the parts of the URL.

Anything else is percent-encoded: a % and two hexadecimal digits, so a space becomes %20. The RFC says to use upper case for those digits. Google says characters outside basic ASCII should be percent-encoded. You can still use words in your readers’ language: Google asks for them, and the encoded form is what is sent.

Do capital letters matter? #

Yes. RFC 3986 says the scheme and the host are not case sensitive. Google’s URL guide says URLs are case sensitive for Google, so /Green-Tea/ and /green-tea/ can count as two pages. If your server treats them the same, Google asks you to use one case throughout. Lower case is the simple choice.

What does a good URL look like? #

From Google’s URL structure guide:

  • Readable words. /green-tea/, not /p?id=48213.
  • Your audience’s language. Transliterate where that helps.
  • Hyphens between words. Google recommends hyphens, not underscores.
  • Few parameters. Drop any that do not change the content.
  • Standard separators. = between key and value, & between pairs. Google advises against other styles, such as colons and brackets.
  • No session IDs. Google suggests cookies instead.
  • Root-relative links. Broken relative links can create endless addresses. Google suggests links that start with /.

Keep URLs short and honest. Stuffing search words into a path is a form of keyword stuffing; one clear keyword is enough.

How do too many URLs happen? #

Google’s guide names the usual causes: filters that combine (colour and size and price), sort orders, referral and tracking parameters, session IDs, calendars that link to every future date, and broken relative links. Each can multiply one page into thousands of addresses and waste crawl budget. Google suggests robots.txt to keep crawlers off search results, calendars and filter pages, and nofollow on links to endless future calendar pages. Long lists belong in proper pagination. UTM parameters are fine in links from emails and adverts, but not in your internal links.

Which version is the real one? #

Google’s guide to canonical URLs lists common duplicates: HTTP and HTTPS, several hostnames, tracking parameters such as gclid, and separate mobile pages. It ranks the ways to name the real one:

Method Signal
A redirect to the real URL Strong
rel="canonical" Strong
Listing it in a sitemap Weak

Google says these can be combined. It also says not to use robots.txt or the URL removal tool to choose a canonical, to link internally to the canonical URL, and that it generally prefers HTTPS. See duplicate without canonical and SSL certificate.

Common mistakes #

  • One page, many addresses. With and without www, slash, or capitals. Pick one and redirect the rest.
  • Changing URLs for no reason. Every change needs a 301 redirect, and links elsewhere point at the old address.
  • Dates in the path. A URL with a year in it looks stale next year, and changing it costs a redirect.
  • Fragments for content. #page2 is not a page to Google.
  • Underscores and spaces. Use hyphens.
  • Tracking codes in internal links. They create duplicates of your own pages.

A worked example #

Before Problem After
/Products/Green_Tea.php?sessionid=8f2a Capitals, underscore, file ending, session ID /products/green-tea/
/blog/2024/03/green-tea-guide-2024 Dates that will age /blog/green-tea-guide/
/shop/#tea Fragment used as a page /shop/tea/
/tea/?utm_source=menu in the site menu Tracking code on an internal link /tea/

Each “before” address then gets a 301 to its “after” address, and the sitemap lists only the “after” ones.

How to check it #

  1. Type your home page with and without www, with http and https, and with and without the closing slash into the Redirect Checker. Every version should reach one address in one hop. See redirect chain.
  2. Check each page’s canonical points at that same address with the Meta Tag Checker. Our Canonical Tag Checker checks it too.
  3. Make sure your XML sitemap lists the same version with the XML Sitemap Checker.
  4. Check a capital-letter version of a URL in the HTTP Header Checker. It should redirect or answer 404, not show the page twice.
  5. Find internal links to old or broken addresses with the Broken Link Checker. See broken link and internal linking.
  6. Check that robots.txt blocks filter and search addresses, not real pages, with the Robots.txt Checker.
  7. Look for endless filter and calendar addresses with our Crawl Trap Checker.
  8. See how your URL and title look in Google with our Google Snippet Preview. Check language versions with our Hreflang Checker; see international SEO.
  9. Compare your address style with a rival’s using Compare Two Websites, and check your llms.txt URLs with the llms.txt Checker.
  10. In Google Search Console, use URL Inspection to see which URL Google chose as canonical.
  11. Over time, the crawl trap guard and the migration redirect mapper are in URSY Pro, opening in stages.

What URSY.com counts #

We record the path of each request, never the query string, so tracking codes and session IDs are not stored. “Pages read” figures use distinct paths. Requests for secret paths, such as .env, .git or wp-config, are counted as attacks, whatever name the visitor sends. The full rules are on our methodology page.

Questions #

Should URLs end with a slash? #

Either works. What matters is that you pick one, redirect the other, and link to your choice everywhere.

Are URL words a ranking factor? #

Google asks for readable words because they help people. Do not rename working pages just to add words.

No. The URL is the address. A link is the clickable text that points to it. See anchor text.

Can I use non-English words in a URL? #

Yes. Google asks for words in your audience’s language, percent-encoded where needed.

Sources #

Updated 24 November 2026 by URSY.com.

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

Tools for this

All 871 wiki entries, A to Z →