View project
Read article
Learn more
Drag
Scott Kennedy
Co-Founder & Strategy Director
Last Updated:
May 29, 2026
Websites
5
min read

How to Structure SEO-Friendly URLs

A URL is often one of the first thing a person reads about a page before they decide to click it. Similarly, it’s one of the first things a search engine uses to work out what the page is about. Get it right and it quietly does its job for years. Get it wrong and you create friction for the people you want to reach and a confusion for crawlers. The good news is that URL structure is one of the easier parts of SEO for beginners to get right, and once it is set you rarely have to touch it again.

This is a practical guide to structuring URLs that read well, rank cleanly and hold up as your site grows. Get the structure right once, then move on to the content marketing and broader digital marketing efforts that actually help you achieve the ranking you’re after.

The structure of a URL

Before the rules will make sense, it helps to know what the unique parts of a URL are called. A URL, short for uniform resource locator, is the full web address someone uses to reach a page. It breaks into a few pieces.

Take https://www.example.com/blog/seo-friendly-urls:

  • The protocol https:// tells the browser how to connect. HTTPS is the secure standard, and the one you should be serving.
  • The domain name www.example.com is your site's address. The .com on the end is the top-level domain, or TLD.
  • The path /blog/seo-friendly-urls shows where the page sits on your site: here, a page inside the blog.
  • The slug seo-friendly-urls is the final, page-specific part of the path. It is the part you control most directly, and the part most of this guide is about.

You can also split a site across subdomains blog.example.com or subdirectories, also called subfolders example.com/blog. That choice has SEO consequences, covered further down.

The role a URL plays in SEO

The URL helps search engines understand what a page covers and how it fits with the rest of your site. It is a real ranking signal, but a small one. Words in the URL are a confirmed ranking factor, sitting well behind content quality, relevance and backlinks. URL optimisation is one small part of on-page SEO, alongside the page title, the headings and the page content itself. So URL structure is worth getting right, and not worth obsessing over.

Where URLs earn their keep is the click. A user-friendly URL in the SERPs tells someone what they will find before they arrive, which lifts click-through rates and quietly improves the user experience of reaching your web page. When the slug matches the search query a person typed, the result reads as more relevant. A bare URL shared in a message or on social media also acts as its own anchor text: if it contains a relevant keyword, it tells both the reader and the search engine what sits on the other end.

For all the attention it gets, a clean SEO URL has a modest effect on search engine rankings. Treat URL structure as hygiene. Low effort, worth doing properly once, not a lever you can pull for big gains in SEO performance.

Key rules to follow

A handful of conventions cover most of what matters. None of them are difficult. They are the URL best practices worth applying consistently across the whole site, and they line up with most SEO best practices guides.

Include your keyword, once

Put the page's target keyword, identified through keyword research, in the slug so it reinforces the topic and reads clearly when shared. Use it a single time. Repeating it /seo-urls/best-seo-url-tips-seo is keyword stuffing: it looks spammy and earns nothing. One clean, relevant keyword is enough.

Use hyphens, not underscores

Google reads a hyphen as a space and uses it to separate words, so /seo-friendly-urls is three words and stays human-readable. It reads an underscore as a joiner, so /seo_friendly_urls can register as one long string. This is one of the few URL rules Google has stated plainly.

Keep URLs short and descriptive

Aim for a slug of roughly 50 to 60 characters. Shorter URLs are easier to read, share and remember, and less likely to be cut off in the results. Using descriptive URLs that name the topic beats a string of numbers every time. This is a guideline, not a hard limit, so do not trim a URL so far it stops making sense.

Stick to lowercase letters

Many servers are case-sensitive, so /Page and /page can be read as two different addresses. That splits your signals and can create duplicate content. Lowercase everything in the path and the problem disappears.

Avoid special characters

Question marks, ampersands and percent signs usually belong to dynamic parameters and make a URL harder to read and to crawl. Stick to letters, numbers and hyphens.

Drop stop words

Words like "and", "the", "of" and "a" add length without meaning. /how-to-structure-urls beats /a-guide-on-how-to-structure-the-urls.

Reflect your site structure

A path like /blog/seo-tips tells a search engine that the SEO tips page sits under the blog. That hierarchy helps it understand how your content relates and how deep your coverage goes.

Static URLs vs. Dynamic URLs

You will meet two kinds of URL in the wild. Static URLs stay put unless you change them by hand, and they read cleanly: /blog/seo-friendly-urls. Dynamic URLs are generated by the server from a database query and tend to carry URL parameters: /products?id=98&session=4f2a. Search engines can crawl both, but static URLs are easier to read, share and optimise. They behave much like a plain HTML page: fixed, predictable and easy to index, which helps both SEO and user experience.

Dynamic URLs show up most on larger sites, ecommerce stores and product pages especially, where filters and on-site search spin up long parameter strings. Two things to watch: session IDs in the URL, which create endless duplicate versions of the same page, and parameters that simply reorder the same content. Most platforms, WordPress included, let you switch to clean, static-looking URLs in the settings. On a database-driven site, it is one of the higher-value changes you can make.

How to plan your URL architecture

If you are building or rebuilding a site, plan the structure before you launch. Sorting it out early is far cheaper than untangling it later.

Map your site hierarchy

Start with the homepage, then your top-level categories, then any subcategories, then individual pages. Every page should have a logical home. Pages with no clear parent and no internal links (orphan pages) are hard for both people and crawlers to find.

Match the URL to the H1

Your slug should echo the page's main heading. If the H1 is "The Best SEO Tools for 2026", a slug of /best-seo-tools confirms to the reader that they have landed in the right place and reinforces the page's topic.

Keep folder depth shallow

A path buried five levels deep /services/marketing/digital/seo/strategy is harder to crawl and read than a flatter one. Two or three levels is usually plenty.

A note on a claim you will see repeated: that keywords earlier in the URL carry more weight. Google has played this down. It is not worth over-optimising the slug or distorting a sensible site structure to chase it. Put the keyword where it reads naturally and leave it there.

Complex URL challenges

Once the URL best practices above are in place, a few situations need a bit more thought.

Breadcrumbs

A breadcrumb is the navigation trail at the top of a page, and it often mirrors the URL path. It is not part of the URL itself, but with breadcrumb schema in place Google can show a clean, readable path in the results instead of a raw address, which tends to help click-through.

Localisation

When you target multiple regions or languages, use subdirectories /es/ for Spanish or country-specific domains rather than parameters like ?lang=es. These keep your domain authority consolidated while still signalling who each version is for.

Trailing slashes

Google can see /page and /page/ as two separate URLs. Pick one format, apply it site-wide, and use 301 redirects and canonical tags so the unused version points to the one you keep. The choice matters less than the consistency.

Subdomain or subdirectory

For most content, a subdirectory or subfolder example.com/blog is stronger because it shares the authority of your main domain name. A subdomain blog.example.com behaves more like a separate site and has to earn trust on its own. Reach for a subdomain only when the content is genuinely distinct, such as a help centre or customer portal.

How to change an existing URL

Changing a live URL is one of the riskier things you can do in SEO, so only do it for a real reason. Good reasons include moving from a messy dynamic structure to a clean static one, stripping an outdated date stamp /2021/post-title, or fixing a serious keyword mismatch. If a page already ranks well and the URL is merely not perfect, the safest move is usually to leave it alone. This is worth watching during a site rebuild in particular, where clean, well-ranking URLs often get changed for tidiness rather than need. The lost traffic rarely shows up on launch day; it turns up weeks later, once the search engines have caught up.

If you do change it, the work has three parts.

Set up a 301 redirect

A 301 (permanent) redirect sends the old URL to the new one and passes the page's ranking signals across. Current Google guidance is that a 301 passes those signals in full, so you are not bleeding authority the way older advice warned. Skip the redirect and the old URL returns a 404, leaving broken links pointing at a dead page and taking its rankings with it.

Update internal links and your sitemap

Treat the redirect as a safety net, not the finish. Crawl the site and point internal links straight at the new URL, so you avoid redirect chains that slow crawlers down. Then update your XML sitemap to match.

Review Google Search Console

After the change, check the Indexing report in Google Search Console for a rise in 404s or redirect errors. A short wobble in traffic while the bots re-crawl is normal. Errors that persist mean something in the redirect setup needs fixing.

The TL;DR

  • Be clear: use keywords that tell people and search engines what the page covers.
  • Be consistent: hyphens, lowercase letters, no special characters.
  • Be concise: keep URLs short and drop stop words.
  • Be logical: use a folder structure that mirrors your site hierarchy.
  • Be careful: always use a 301 redirect when you change a URL, and only change one when there is a real reason to.
Scott Kennedy
Co-Founder & Strategy Director
Scott has a rich agency background supporting global brands with digital transformation. Today he’s committed to helping ambitious founders shape tomorrow with technology. Weekends are spent gardening with 90's hip-hop in his ears.
Share
URL copied
to clipboard

FAQs

What is an SEO-friendly URL?
A short, readable web address that tells people and search engines what a page is about before they open it. In practice that means lowercase letters, hyphens between words, your target keyword in the slug, no tracking parameters or session IDs, and a path that reflects where the page sits on your site.<br>A URL like /seo-guide/url-structure does this well. /blog_posts/12345?p=98 does not. The goal is a clear, human-readable address, not perfection. A well-structured URL supports good content; it does not replace it.
Do URLs really affect search rankings?
A little, but less than most guides claim. Google has repeatedly described words in the URL as a small ranking signal, well behind content quality, relevance and backlinks.<br>Where URLs earn their keep is click-through and trust. A clear address in the SERPs makes people more likely to click, and that engagement matters. So treat URL structure as a low-effort hygiene factor worth getting right once, not a lever you can pull for big gains in search engine rankings. Fix it when you build the page, then leave it alone.
How long should an SEO-friendly URL be?
Short enough to read at a glance, usually around 50 to 60 characters for the slug, though this is a guideline rather than a rule. Shorter URLs are easier to share, less likely to be truncated in the SERPs, and keep the focus on your main keyword.<br>Drop stop words like "and", "the" and "of" where they add length without meaning. That said, do not cut a URL so hard it stops making sense. Readability beats hitting a character count.
Should you use hyphens or underscores in a URL?
Hyphens. Google treats a hyphen as a space and uses it to separate words, so /seo-friendly-urls reads as three words. It treats an underscore as a joiner, so /seo_friendly_urls can be read as one long string. This is one of the few URL rules Google has stated plainly, so it is worth following across the whole site.<br>If you have existing URLs using underscores and they already rank, leave them. The gain from switching rarely justifies the redirect risk.
Should URLs always be lowercase?
Yes. Many web servers are case-sensitive, which means /Page and /page can be treated as two separate URLs serving the same content. That splits your ranking signals and can create duplicate content problems.<br>Keep every part of the path in lowercase letters and the issue never arises. If uppercase URLs already exist and are indexed, use 301 redirects to send them to the lowercase version rather than leaving both live.
Should you include your keyword in the URL?
Yes, once, naturally. Putting your target keyword in the slug reinforces what the page is about and helps the URL work as readable anchor text when someone shares the bare link.<br>Keep it to a single, clean use. Repeating the keyword (/seo-urls/seo-url-structure-seo-tips) is keyword stuffing and adds nothing. The keyword in the URL is a minor signal, so match it to your H1 and page title and move on. Do not contort a URL to force a keyword in.
What is the difference between a static and a dynamic URL?
A static URL stays the same until you edit it and reads cleanly, like /blog/seo-friendly-urls. A dynamic URL is generated by the server from a database query and usually carries URL parameters, like /products?id=98&session=4f2a.<br>Search engines can crawl both, but static URLs are easier to read, share and index. Dynamic URLs are common on ecommerce sites and large product catalogues. The main risk is session IDs and filter parameters creating duplicate versions of the same page. Most platforms let you serve clean, static-looking URLs, which is worth turning on.
Will changing a URL hurt your SEO?
It can, which is why you only do it for a good reason. Changing a URL without a redirect creates a 404 and broken links, and loses the ranking the old page had built.<br>Done properly, with a 301 redirect from old to new, Google passes the page's authority across, and current guidance is that a 301 passes ranking signals in full. Expect a short dip while the search engines re-crawl. If a page already ranks well and the only issue is cosmetic, the safer call is usually to leave the URL as it is.
How do you change a URL in WordPress?
Edit the slug in the page or post editor, then make sure a 301 redirect points the old URL at the new one. WordPress does not always create that redirect for you, so use a redirect plugin or your host's tools to set it up. Skipping this step leaves broken links and dead pages behind.<br>After the change, update any internal links that pointed at the old slug and check Google Search Console for 404s over the following weeks. The same approach applies to most content platforms: change the slug, redirect the old URL, fix the internal links.
Do trailing slashes matter for SEO?
Mostly for consistency rather than ranking. Google can treat /page and /page/ as two different URLs, which can split signals or create duplicate versions of the same content.<br>Pick one format, apply it across the whole site, and use 301 redirects and canonical tags so the version you do not use points to the one you do. Which one you choose matters far less than choosing one and sticking to it.
Should you use a subdomain or a subdirectory?
For most content, a subdirectory or subfolder (example.com/blog) is the stronger choice because it sits within your main domain and shares its authority directly. A subdomain (blog.example.com) is treated more like a separate site, so it has to build trust more independently.<br>Use a subdomain only when the content is genuinely distinct, such as a help centre, app or customer portal. For a blog or service pages, keep them in subfolders on the main domain.

Have a project in mind? Let’s get to work