A Guide to SEO-Friendly URL Structure

To many people, URLs are just seemingly unimportant addresses of web pages. However, how you structure URLs for SEO is very important.

They may seem less important than title and heading elements, but URLs can be a powerful tool for achieving SEO success.

Are keywords in the URL used for ranking?

There is no clear answer to whether keywords in the URL are used for ranking. Here is why.

2010: Approaching keywords in the URL like a user

In 2010, Google’s Matt Cutts posted a video in which he discussed keywords in a path name versus keywords in a file name.

The path name is:

/tools/wood/drills.html

The file name with many hyphens is:

/tools-wood-drills.html

Cutts recommended approaching the question from the angle of what users might prefer.

He suggested that the version with many hyphens could look like spam to users.

He then affirmed that no algorithm penalizes having many hyphens, once again emphasizing the user-centered approach.

Cutts implied that there is a user experience impact in the following statement:

“In terms of search engine rankings, I’m not sure there is much difference between the two.

But you may want to be a little careful, because of the user experience of having a very long file name made up of nothing but hyphens. People might not like it if they see dash, dash, dash, dash, dash, dash and so they might not click on it.”

Matt did not address the ranking factor aspect.

Perhaps what he wanted to emphasize is that the user experience part – what people will click on in search engine results pages (SERPs) – matters more than any ranking factor benefit.

2011: Keywords in the domain name as a ranking factor

In 2011, in a video with a related segment on keywords in domain names, he said Google was thinking about reducing the influence of keywords in domain names.

Like keywords in URLs, keywords in domain names are also a ranking factor.

But their importance was played down.

Matt downplayed their role as a ranking factor in favor of other factors related to user experience and marketing – similar to how he also downplayed keywords in URLs.

2016: Google says keywords are a very small ranking factor

In a Webmaster Central hangout in January 2016, John Mueller actually acknowledged that keywords in the URL are a ranking factor.

However, he minimized its importance as a ranking factor, describing its influence as “very small.”

Mueller:

“I believe it’s a very small ranking factor, so it’s not something I would really try to force. And it’s not something where I’d say it’s even worth your effort to restructure your website just to be able to include keywords in the URL.”

Calling it “very small” is consistent with what Cutts has said all along – that there are other areas of a website that are more important to focus on.

2017: Keywords in URLs are overrated

Mueller continued to minimize the importance of keywords in URLs as a ranking factor.

In 2017, he called them overrated.

Keywords in URLs are overrated for Google SEO. Make URLs for users. Also, on mobile you usually don’t even see them.

— John (@JohnMu) March 8, 2017

2018: Don’t worry about keywords in URLs

Most recently, in 2018, Mueller continued to downplay keywords in URLs as a ranking factor, saying users don’t even see them.

(Presumably, he was referring to URLs not being displayed in Google SERPs.)

I wouldn’t worry about keywords or words in a URL. In many cases, URLs aren’t seen by users anyway.

— John (@JohnMu) December 6, 2018

A keyword in a URL may be a ranking factor, but based on statements from Googlers, it is a very small one.

Are keywords in naked URL links used as anchor text?

There is an idea that if someone links to your website with just the link, Google will at least use the keywords in the URL as anchor text, which would help that page rank better for that anchor text.

That kind of link is sometimes called a naked link.

It is called naked because it is a link in the form of a URL rather than hidden behind anchor text.

Naked URL:

http://www.example.com/

URL in an anchor text:

Nhấp vào đây!

Mueller has said (How Google handles naked links, September 2020) that naked links do not pass on anchor text information.

Here is what he said:

“From what I understand, our systems try to recognize this and say, this is just a linked URL, not that there is valuable anchor text here.

So we might look at this as a link but we can’t really use that anchor text for anything specific.

So from that point of view, it’s a normal link but we don’t have any context there.”

Can keywords in the URL increase clicks from SERPs?

There is an old SEO idea that using keywords in the URL stimulates a higher click-through rate (CTR) from search engine results pages (SERPs).

This may have been true in the past.

Today it is less true, especially for sites that use breadcrumb navigation and/or breadcrumb structured data.

Instead, Google uses category names in search results for sites that have breadcrumb navigation or breadcrumb structured data.

Keywords in the URL are not displayed.

Screenshot of search results where Google does not display the URL

For sites that do not use breadcrumb navigation or breadcrumb structured data, Google does display URLs with keywords in them.

But Google does not highlight them.

If Google highlighted keywords in the URL, it might have helped draw attention to the listing—but this is not the case.

Screenshot showing that keywords in SERPs are not highlighted

What are keywords in the URL good for?

Beyond a possibly very small ranking factor weight, there are clear benefits for site visitors in having keywords in a URL.

Keywords in the URL can help users understand what a page is about.

Although those keywords may not always appear in SERPs, they will show when the page is linked as a naked URL.

Example of a naked URL:

https://www.example.com/widgets/best-widgets

When in doubt, optimize for users, because Google always recommends making pages useful for users.

This tends to fit the kinds of sites Google wants to rank.

Best practices for URL structure

Standardize your URLs in lowercase

Most servers have no problem with URLs that mix uppercase and lowercase.

Even so, standardizing how your URLs look is a good idea.

URLs are usually written in lowercase “like-this-dot-com” as opposed to mixed case “Like-That-Dot-Net” or all uppercase “LIKE-THIS-DOT-BIZ.”

It is best to do the same, if only because that is what users expect and it is easier to read than all caps.

Keeping your URLs standardized helps prevent linking errors within the site and from outside it.

Use hyphens, not underscores

Always use hyphens (-) and not underscores (_), because underscores are not visible when the URL is published as a naked link.

Here is an example of how underscores in links are a bad practice:

Underscores are not visible when formatted in a link. This means users cannot see exactly what the URL is.

Use exact keywords in category URL structure

Using a less relevant keyword as a category name is a common mistake that comes from choosing the keyword with the most traffic.

Sometimes the highest-traffic keyword is not necessarily what the pages in the category are about.

Choose category names that truly describe what the pages inside them are about.

When in doubt, choose the words that best fit the users searching for the content or products contained in those categories.

Avoid using extra words in URL structure

Sometimes a CMS may add the word /category/ to the URL structure.

This is an undesirable URL structure.

There is no reason for a URL structure that looks like /category/widget/.

It should simply be /widget/.

Similarly, if there is a better word than “blog” to tell users what to expect from a section of your site, use that word instead.

Words guide users to the content they are looking for.

Use them appropriately.

Make your URLs durable

Just because a date is in the title of an article does not mean it belongs in the URL.

If you plan to create a “Top xxx for 20xx” type of post, it is generally better practice to use the same URL year after year.

So instead of:

example.com/widgets/top-widgets-2020

Try removing the year and simply going with:

example.com/widgets/top-widgets

The benefit of updating the content and title every year and keeping the same URL is that all the links that already pointed to last year’s content remain.

Anyone who follows the old links will find the updated content.

It is also possible to create an archive of previous years.

That is up to you.

Subscribe for Daily Search Insights

News on AI, PPC and digital marketing, distilled to drive success. Join 75k other marketers!

Trailing slash or no trailing slash

A trailing slash is this symbol: [ / ].

The World Wide Web Consortium (W3C) – the group responsible for web standards – recommends as a best practice using a trailing slash to indicate a “container URI” to denote parent/child relationships.

(A URI is used to identify resources just like a URL, except those resources may not be on the web.)

A parent/child relationship is when a category contains many web pages.

The category “container” is the parent, and the web pages inside it are the child documents contained in the category.

Here is what the W3C states in the section titled Linked Data Platform Best Practices and Guidelines:

“2.6 Include a trailing slash in container URIs When representing container membership using hierarchical URLs, including a trailing slash in a container’s URI makes it easier to use relative URIs.”

In HTML, the trailing slash is supposed to indicate the presence of a directory or a category section.

In 2017, Google’s John Mueller tweeted that, aside from the homepage, a URL with and a URL without a trailing slash are different web pages.

Example:

https://www.example.com/widgets

may be a different page from:

https://www.example.com/widgets/

/widgets denotes a page while /widgets/ represents a directory or category section.

I noticed there was some confusion around trailing slashes on URLs, so I hope this helps. tl;dr: slash on root/hostname=doesn’t matter; slash elsewhere=does matter (they’re different URLs) pic.twitter.com/qjKebMa8V8

— John (@JohnMu) December 19, 2017

Mueller’s 2017 tweet reaffirmed an official Google blog post from 2010 (To Slash or Not to Slash) that made similar statements.

However, even in that 2010 blog post, Google pretty much left it to publishers to decide how to use trailing slashes.

But Google’s adherence to a common trailing slash convention reflects that view.

Google is flexible about trailing slash best practices

Here is an example of how Google encodes URLs.

This URL has .html at the end and is clearly a web page:

https://webmasters.googleblog.com/2020/11/timing-for-page-experience.html

This URL, which ends with a trailing slash is a category page:

https://webmasters.googleblog.com/2020/11/

And this is the container for the month of May of 2020:

https://webmasters.googleblog.com/2020/

The examples above follow the standard recommendation to use a trailing slash at the end of a category directory and not use it at the end of the URL when it is a web page.

Google’s URLs with no trailing slash at all

However, other sections published by Google do not follow that standard.

The following examples are categories and web pages that do not use trailing slashes.

  • This is a URL for a category section:
    https://developers.google.com/analytics
  • This is a web page:
    https://developers.google.com/analytics/devguides/integrate
  • And this is another web page:
    https://developers.google.com/analytics/devguides/collection/firebase/android

All of those web pages and category pages look the same because they do not use trailing slashes.

Google is flexible about using trailing slashes

The examples above show that yes, there are best practices.

But this is one of those best practices that can be ignored.

As far back as 2010, Google’s advice on using trailing slashes has been flexible.

According to Google:

“…you are free to choose whichever you like.”

Perhaps the most important point about trailing slashes in URLs is that you pick one approach and stick to it so you can avoid confusion.

It also makes it easier to redirect URLs without a trailing slash to URLs with a trailing slash, and so on.

URLs for SEO purposes

The topic of SEO-friendly URLs is deeper than one might suspect, with many nuances.

Although Google increasingly does not display URLs in SERPs, popular search engines like Bing and DuckDuckGo still display them.

URLs are a good way to signal to a potential site visitor what a page is about.

Using URLs properly can help improve click-through rates wherever links are shared.

And keeping URLs shorter makes them user-friendly and easier to share.

Sites that make sharing easy are helping users make their pages popular.

Don’t underestimate the power of popularity for ranking purposes, because one of the things search engines do is show users what users expect to see.

The URL is a humble and somewhat overlooked part of the SEO equation, but it can contribute a great deal to helping your pages rank well.

Further reading:

SAMI Digital Technology Company

Table of Contents
Get Tips to Rank Higher on Google Maps

Get Google’s latest updates and weekly tips for steady growth on Google Maps.

    Table of Contents

    CONTACT US

    No strings attached: contact us today for a solution tailored to your local SEO needs! Our SEO services for local businesses are ready to help you get ahead with proven optimization.



      Your information will be securely sent to and stored in Google Sheets for the purpose of processing your form submission.

      Our Thoughts

      Industry Insights and Advice