TL;DR
- A URL is the web address that tells a browser where to find a page, image or file online. It has a protocol, a domain name and a path, plus optional parameters and a fragment.
- A domain name is the second-level domain plus the TLD (like kiwistic + .com). Subdomains such as www or blog sit in front of it.
- Short, lowercase URLs with hyphens and one clear keyword are easier for people and search engines to read.
- Changing a live URL without a 301 redirect breaks links and loses traffic. In WordPress, set your permalinks to “Post name” before you publish.
What Is a URL?
A URL (Uniform Resource Locator) is the web address that tells a browser where a page, image or file lives and how to reach it. Every URL has at least a protocol and a domain name, such as https://kiwistic.com. Most add a path that points to one specific page, like /wordpress-maintenance/.
Parts of a URL: What Each Piece Does
https://www.example.com/guides/how-urls-work?ref=newsletter#parts
1. Protocol: https://
- HTTP sends data as plain text.
- HTTPS encrypts the connection, so passwords and payment details can’t be read in transit.
Browsers like Chrome label HTTP pages as “Not secure,” and Google has used HTTPS as a ranking signal since 2014. Today it’s the baseline for any site.
In WordPress, check Settings > General. Both the WordPress Address and Site Address should start with https://.
2. Domain Name: example.com
- Second-level domain (SLD): the name you register, like
exampleorkiwistic.
- Top-level domain (TLD): the ending, like
.com,.org, or a country code like.caor.co.uk.
www is the most common one, and sites also use others such as blog.example.com or shop.example.com to separate sections or tools. A subdomain is not part of the domain name itself.3. Path: /guides/how-urls-work
/guides/ is the folder, how-urls-work is the page.4. Query String: ?ref=newsletter
? and passes extra information to the page as key=value pairs. Search results, product filters and tracking tags all use them. Multiple pairs are joined with &.5. Fragment: #parts
# and jumps the browser to a specific spot on the page, usually a heading with a matching ID. The browser handles it on its own and doesn’t send it to the server. Search engines generally treat /page and /page#section as the same page.Types of URLs
URLs can be grouped in two ways: by how they’re built (static or dynamic) and by how they’re written (absolute or relative).
Static vs. Dynamic URLs
https://example.com/about-us/. A dynamic URL is built from parameters that tell the site what to load, like https://example.com/product?id=12345.WordPress shows this difference in Settings > Permalinks. The “Plain” option produces dynamic URLs like ?p=123. “Post name” produces readable ones like /how-urls-work/. For nearly every site, “Post name” is the right choice.
Absolute vs. Relative URLs
https://example.com/contact-us/. A relative URL leaves out the protocol and domain, like /contact-us/, and the browser fills in the rest from the page you’re on.| Type | Example | Best for |
|---|---|---|
| Static |
/about-us/
|
Pages and posts you want people to find and share |
| Dynamic |
/product?id=12345
|
Search results, filters, user-specific content |
| Absolute |
https://example.com/contact-us/
|
Canonical tags, sitemaps, schema, external links |
| Relative |
/contact-us/
|
Internal links within the same site |
How URLs Affect SEO
What Makes a URL SEO-Friendly
- Good:
https://example.com/how-urls-work/
- Bad:
https://example.com/page.php?id=12345&session=xyz
- Short and descriptive: Use the words people would search for, and cut filler like “the,” “and,” or “a.”
- Hyphens between words: Google recommends hyphens to separate words, and they’re easier for people to read than underscores.
- Lowercase only: The path part of a URL can be case-sensitive, so /Page and /page may load as two different addresses.
- Plain characters: Stick to letters, numbers and hyphens. Spaces and symbols get encoded (a space becomes %20), which makes URLs harder to read.
- One keyword, used naturally: Match the page topic, as in /how-urls-work/, without repeating it.
URL words are a light signal, so don’t stuff them. Getting the on-page basics right matters more, and our on-page SEO guide for WordPress covers them.
Common URL Mistakes and How to Fix Them
| Mistake | Why it hurts | Fix |
|---|---|---|
| Long URLs stuffed with extra words |
Hard to read, truncated in search results and when shared |
Cut to the core topic |
| Session IDs or tracking tags in internal links | Creates duplicate versions and skews analytics | Link to the plain URL |
|
Dates or numbers in evergreen URLs ( /2022/03/…)
|
Makes updated content look outdated | Use a descriptive slug without dates |
Duplicate URLs: One Page, Many Addresses
http://andhttps://
- With and without
www
- With and without a trailing slash
- With added parameters like
?ref=newsletter
Pick one version and send every other one to it with a 301 redirect. Add a canonical tag on the page too, so search engines know which version you prefer. We cover both in the sections below.
How to Create a Good URL in WordPress
1. Go to Settings > Permalinks and choose Post name. Do this before you publish anything.
2. When you write a post, edit the slug. WordPress generates it from your full title, so trim it to the main topic.
3. Check the slug for stray words, dates and special characters.
4. Don’t change the slug after publishing unless you have to. If you do, set up a 301 redirect from the old address.
URL Redirects and When to Use Them
301 vs. 302: Which Redirect to Use
| \Detail | 301 (Permanent) | 302 (Temporary) |
|---|---|---|
| Meaning | The page has moved for good | The page is away for now and will return |
| What Google shows in results | The new URL | The original URL |
| Use it for | Site migrations, domain changes, HTTP to HTTPS, merged or deleted pages, new slugs | Maintenance pages, A/B tests, short-term campaigns, items temporarily out of stock |
/old-blog/ to /new-blog/. A 301 from the old address to the new one tells search engines the new URL is the permanent home.How to Set Up Redirects in WordPress
- Changed a slug? Add a 301 from the old address to the new one right away.
- Redesign or migration? Build a list of old URLs and their new matches before launch, and redirect each one to the closest relevant page. This is a standard step in our WordPress development projects.
- Where to set them up: a redirect plugin such as Redirection, your host’s server settings, or your SEO plugin if it includes a redirect manager.
Redirect Mistakes to Avoid
- Redirect chains: A > B > C is slower and harder to crawl. Point A straight to C.
- Redirecting everything to the homepage: If the old page has no equivalent, a relevant category or a clear 404 is better than a bulk redirect to the homepage.
- Removing redirects too soon: Keep a permanent redirect in place for at least a year, and longer if the old URL still gets links or traffic.
- Using the wrong type by default: Some tools let you pick the redirect type, and the default isn’t always 301. Check the setting before you save.
Advanced URL Features
Canonical URLs
You’ll want one whenever the same content can load at more than one address. Product pages in multiple categories are a common case, and so are filtered or sorted pages, and parameters added by tracking links.
example.com/product-a/ and example.com/shop/product-a/, the canonical tag on both points to the one you prefer.- It’s a strong signal, not a command. Google usually follows it, but it can choose a different version if other signals disagree.
- It’s not a redirect. A redirect sends visitors to the preferred URL. A canonical tag leaves both addresses reachable and only tells search engines which one counts.
UTM Codes and Tracking Parameters
https://example.com/product-page/?utm_source=newsletter&utm_medium=email&utm_campaign=holiday_sale| Parameter | What it tells you | Example |
|---|---|---|
utm_source
|
Where the visit came from |
newsletter,linkedin
|
utm_medium
|
The type of channel |
email,social,cpc
|
utm_campaign
|
Which campaign it belongs to |
holiday_sale
|
- Never use them on internal links. A UTM tag on a link inside your own site can replace the original traffic source in your reports.
- Use lowercase and a naming pattern. Analytics treats
Emailandemailas different values.
- Keep the canonical tag in place. Tagged URLs are copies of the same page, and the canonical tag keeps them from competing with the original.
Conclusion
- Use HTTPS, and keep one version of your domain (with or without www).
- Set WordPress permalinks to Post name before you publish.
- Write short, lowercase slugs with hyphens and one clear keyword.
- Use a 301 redirect whenever a live URL changes for good.
- Add canonical tags for duplicates, and keep UTM tags off internal links.
A URL is what other people link to, save and share. Changing it later costs more than getting it right at the start. For a broader look at what else helps your pages rank, see our guide to optimizing WordPress content for SEO.
If you’re planning a new site or a redesign and want the URL structure and redirects handled correctly from day one, tell us about your project.
FAQ
What are the parts of a URL?
A URL has up to seven parts: a protocol (https://), a subdomain (www), a second-level domain (example), a top-level domain (.com), a path (/page-name/), and optional extras like a query string (?id=1) and a fragment (#section). The protocol and domain name are required. Everything else points to something more specific.


