What Is a Slug? URL Slugs and Why They Matter for SEO

   日期:2024-12-26    作者:9ob4k 移动:http://ljhr2012.riyuangf.com/mobile/quote/38866.html

A URL slug is the last part of a URL address that serves as a unique identifier of the page.

For example, the article you’re reading now has a URL that looks like this:

Its URL slug is “what-is-a-url-slug.”

Google’s John Mueller has confirmed that words in a URL are a ranking factor. 

But he also emphasized that it’s a “very very lightweight” one, and it primarily helps to assess the page before Google accesses it.

In one of his tweets, Mueller said:

Even if having keywords in the URL is a ranking factor, we shouldn’t overestimate its effect on rankings.

However, it might still make sense to use the target keyword of a page in a URL slug. Especially considering the user experience (UX) point of view, which is closely connected to SEO.

Let's take a look at these two examples:

  • https://website.com/blog/rock-climbing
  • https://website.com/blog/82354

While the first example provides clear information about the content of the post, the second is just a chain of numbers that doesn't provide any added value. 

If someone only saw these two URL addresses, they'd be more likely to click the first one. Regardless of the actual content on either page.

That's why a URL slug should provide a concise description of a page.

Let's take a look at some best practices and tips on how to create good URL slugs.

As we've already mentioned, the primary role of URL slugs is to make URLs more user-friendly. Therefore, they should describe the content of a page.

  • Good URL slug: /best-air-purifier
  • Bad URL slug: /2575

Using the target keyword is a great way to achieve this. Why? Because it’s usually an accurate, yet very short, description of what the page is about. 

A good URL slug shouldn't be too long. Long URLs are harder to read and remember. Try to use fewer than five words in your slug. 

  • Good URL slug: /abs-exercises
  • Bad URL slug: /the-best-abs-exercises-for-all-levels-of-gym-goer

Also, a URL that’s too long will get truncated in Google’s search results. While this is not an SEO disaster, it doesn't make the page snippet look very good.

Here’s an example of a good and bad URL slug for a page targeting the keyword “keyword research.”

  • Good URL slug: /keyword-research
  • Bad URL slug: /10-tips-for-researching-keywords

How you separate the words (or not) influences the readability of a URL slug. Separating the words in the slug helps users understand the URL more easily. 

  • Good URL slug: /best-travel-tips
  • Bad URL slug: /besttraveltips

The best practice is to use hyphens to separate words in URLs. Search engines may not correctly interpret other separators (like underscores). 

  • Good URL slug: /good-old-fashioned-pancakes
  • Bad URL slug: /good_old_fashioned_pancakes

Since URLs are case-sensitive, it’s best to stick to lowercase characters to avoid mistyped URLs.

Lowercase URLs are also easier to type manually. 

  • Good URL slug: /new-york
  • Bad URL slug: /New-York

Google Search Central recommends avoiding non-ASCII (American Standard Code for Information Interchange) characters, such as special characters of some languages or emojis.

Here’s an example for a hypothetical page in German:

  • Good URL slug: /kaiserstrasse
  • Bad URL slug: /kaiserstraße

And one using emojis:

  • Good URL slug: /emoji-meanings
  • Bad URL slug: /

特别提示:本信息由相关用户自行提供,真实性未证实,仅供参考。请谨慎采用,风险自负。


举报收藏 0评论 0
0相关评论
相关最新动态
推荐最新动态
点击排行
{
网站首页  |  关于我们  |  联系方式  |  使用协议  |  隐私政策  |  版权隐私  |  网站地图  |  排名推广  |  广告服务  |  积分换礼  |  网站留言  |  RSS订阅  |  违规举报  |  鄂ICP备2020018471号