Back when I started playing the search engine optimization (SEO) game, keyword stuffing actually worked. Since then, algorithm updates have spared only a few SEO best practices, like URL optimization.
Googleโs algorithm updates have shaken up the scenery of SEO. However, URL optimization has stood the test of time. This is an essential element of on-page SEO that every content marketer should know.
To get you up to speed, Iโll share the ABCs of URL optimization and up-to-date best practices. Iโll also share tips Iโve learned from experts.
Table of Contents
- What is a URL?
- Why URLs Are Important for SEO
- URL Best Practices for SEO
A typical URL consists of several parts: Protocol, subdomain, domain, subdirectory, and slug. A protocol can be HTTP or HTTPS โ the latter signaling an encrypted connection. A subdomain is usually โwww.โ (World Wide Web), but custom subdomains like โshop.โ and โblog.โ arenโt uncommon.
Afterward, thereโs the domain name, which consists of a top-level domain like โ.comโ and a second-level domain, which is usually a brand or project name.
The aforementioned parts will help you reach a home page. From there, youโll likely go to a subdirectory โ a folder inside the main website โ and a slug, which identifies singular pages.
URL Example
Consider the following URL: https://blog.hubspot.com/marketing/url-best-practices-for-seo. It has the following parts:
- Protocol: HTTPS://
- Subdomain: blog.
- SLD: hubspot
- TLD: .com
- Subdirectory: /marketing
- Slug: /url-best-practices-for-seo
From this URL, I can tell that Iโm on a blog about URL basics. Itโs published by HubSpot and hosted using an encrypted connection.
These perks are only possible if we use SEO best practices for URLs. Letโs dig further into the reasons why good URLs are so impactful.
Ranking Factor
URLs are on Google’s confirmed search ranking factors, which help search engines decipher what each webpage contains. With that in mind, I add relevant keywords to my URLs to help Google understand my pagesโ content, why I made it, and which searches it should rank for.
User Experience
Keyword stuffing is a thing of the past. SEO is now a delicate dance of pleasing both algorithms and flesh-and-blood readers. I now aim for a descriptive URL so users know what to expect from the page.
If someone sends my URL in a direct message, will the recipient feel confident theyโre clicking into a relevant and valuable page? Reaching this ideal gets me more backlinks and sales.
Accessible Links
If thereโs one thing I hate about LinkedIn, itโs how it handles external URLs. You canโt hyperlink an anchor text. Instead, you must add a bare link, which often appears ugly if you use non-descriptive links โ like https://www.example.com/post/p123/.
Image Source
While I could use a link shortener to make it prettier, thatโs an extra step. I avoid the issue altogether by using descriptive, well-formatted, and concise URLs.
Weโve talked about the ideals, so letโs go through the SEO best practices that will get you there.
Crafting the perfect URL is only one part of ranking in search. Looking to learn more? Check out our complete guide on-page SEO.
1. Keep each URL as simple as possible.
SEO is a Rubikโs Cube on steroids โ complex and constantly shifting. Sometimes, my saving grace is Googleโs guidelines on URL optimization. Weโre told to โcreate a simple URL structureโ and use โsimple, descriptive words in the URL.โ
While โsimpleโ varies from person to person, opt for one of the following good URL structures, depending on the business.
- Content website: https://example.com/category/post-title
- Ecommerce website: https://example.com/product-category/product-name
- Service-based website: https://example.com/service-category/service-name
- Local business website: https://example.com/location/service
- Portfolio website: https://example.com/portfolio/project-name
2. Standardize your URL naming conventions.
While I recommend using one of the variations shared above, I occasionally brainstorm among my team members to see what works for us. As long as we have a standard and stick to it, weโre good.
โURLs are a stable foundation. Once set, changing them can cause more harm than good, leading to broken links and lost SEO juice โ unless properly managed with redirects,โ shares Ryan Ratkowski, founder of Cascade Interactive.
I think of it like a buildingโs plumbing system. Iโd focus on getting the configuration right during setup rather than ripping out the walls five years in. Incorporate SEO best practices for URLs during the initial build of your website.
3. Limit the URL structure to three hierarchical levels.
The first time I set up a URL structure, I debated diving deep into subfolders and subcategories for everything and anything. My more experienced stance is to keep it simple and keep it logical.
Jacob Kettner, CEO of First Rank, recommends โa maximum of three hierarchical levels, ensuring clarity without unnecessary complexity.โ
Why? โIt strikes the perfect balance, offering categorization without overwhelming users,โ he adds.
4. Avoid adding dates.
I think twice before slamming time stamps onto my URLs. Itโs like adding an expiration date to my webpage. In contrast, users (and Google) prefer new content. Keep your URLs timeless, just like a classic black tee.
Maddy Osman, founder of The Blogsmith, agrees and adds: โIn most cases, articles take anywhere from three to six months to appear in the top 10 on SERPs. You donโt want to restrict the potential of that ranking article by including the previous year in the URL slug.โ
I use WordPress, so I head to โSettingsโ > โPermalinksโ to make sure I havenโt enabled a permalink structure involving time information.
5. Take out non-essential words in the slug.
Pop quiz. Which should you use?
- /how-to-optimize-your-urls-for-search-quick-tip
- /how-to-optimize-urls-for-search
Writers and editors often ask me about this. Personally, I remove words that add little or no meaning to the URL โ like โa,โ โand,โ and โthat.โ The latter URL without โyourโ and โquick-tipโ conveys the same meaning without looking like a word soup, so I prefer that variation.
Plus, a 2023 Backlinko study found that shorter URLs tend to rank above longer URLs, so I use a limit of 60-70 characters to avoid long URLs.
To get an even shorter URL, I could also remove the words โtoโ and โfor,โ but I consider them better to keep since they make the URL more readable for humans. Itโs a balance that comes intuitively, but I know youโll get it with practice.
6. Handle dynamically generated URLs with care.
While a static URL remains consistent every time itโs accessed, Iโve run into website builders that automatically generate dynamic URL parameters when the webpage is loaded.
In such cases, I donโt have the complete customizability to change the URL, so I have to make do with URLs containing random symbols and numbers. Working with that can be a challenge, but I donโt lose sleep over it.
โAs long as youโre aware of your websiteโs limitations and can optimize the URL slugs you do have control over, you shouldn’t have to worry about parameterized URLs negatively impacting your SEO performance,โ Lauren Galvez, an experienced SEO consultant, assured me.
7. Include relevant keywords.
Since the URL tells search crawlers what the webpage is about, I recommend including relevant keywords to instantly convey everything there is to your webpage.
This also improves my click-through rate (CTR) on the page. A 2023 Backlinko study found that webpages with URLs similar to search keywords enjoyed a higher CTR compared to webpages with URLs different from search keywords.
For instance, if users search for โergonomic keyboards,โ I opt for an SEO-friendly URL slug that contains โergonomic keyboardsโ instead of โflexible keyboards.โ
8. No keyword stuffing.
When an article is relevant to multiple main keywords, I donโt include all of them in the URL. Otherwise, Iโm left with a mess like this:
https://blog.hubspot.com/marketing/url-best-practices-for-seo-friendly-structure-optimization.html
Wow, that looks ugly. Plus, it would take readers a few tedious seconds to understand what the webpage is about. In contrast, SEO best practices for URLs prioritize usability over almost everything else.
What I do is pick a single keyword for my URL and let my content do the talking.
9. Make it reader-friendly.
While Iโve mentioned it before, it’s worth reiterating that URLs should be self-explanatory to internet users. People should be able to instantly tell what they might find based on your slug.
With that in mind, sometimes I have to reorder my keywords. Other times, I have to omit words or add stop words. For instance, the URL slug โ/google-algorithm-update-namesโ may be a mouthful for readers, so Iโd change it to โ/names-of-google-algorithm-updates.โ
10. Separate words with hyphens.
URLs cannot contain spaces. So, to ensure I donโt end up with slugs like โ/googlealogrithmupdatenames,โ I use a separator. Google recommends that we use hyphens (-) instead of underscores (_).
11. Use lowercase letters.
While Iโm all about proper capitalization (even in text messages), I have to accept the triumph of lowercase letters in URLs. For starters, it keeps things consistent. Plus, it avoids compatibility hiccups with any case-sensitive web server since a user might enter a URL with lowercase instead of uppercase letters.
12. Don’t use slugs that belong to other pages.
URLs need a unique slug โ or Google sees the pages as duplicate content on your website, which can be penalized in some circumstances. To prevent my web pages from competing with each other in search engine results, I avoid similar URL slugs entirely.
That being said, especially if you own an ecommerce store, you might realize you have two similar URLs like this:
- https://www.example.com/product-category-one
- https://www.example.com/product-category-directory/product-category-one
When that happens to me, I tell search crawlers which webpage I want to appear on Google Search. More specifically, I use canonical tags, a classic technical SEO practice.
Making the Most of URLs
When Iโm scrolling on my phone, Iโm not analyzing the URLs I click on. I just tap away. However, on the back end, great URLs lead to more traffic. While thereโs a laundry list of tips to keep in mind, these best practices become second nature over time.
When you want to dig deeper into SEO essentials, such as link building, check out our SEO guide with all the juicy details.
Editor’s note: This post was originally published in April 2014 and has been updated for comprehensiveness.