{"id":9566,"date":"2018-04-19T09:00:00","date_gmt":"2018-04-19T06:00:00","guid":{"rendered":"https:\/\/www.reliablesoft.net\/?p=9566"},"modified":"2021-06-23T19:07:47","modified_gmt":"2021-06-23T16:07:47","slug":"slug","status":"publish","type":"post","link":"https:\/\/www.reliablesoft.net\/slug\/","title":{"rendered":"What is a Slug in SEO and How to Optimize it Correctly"},"content":{"rendered":"

Beginners to SEO may come across the word slug<\/em>. Various articles refer to the post or page slug and the importance of optimizing it for better SEO, but what does this mean?<\/p>\n

In this post, you will learn what is a post slug and why it is very important for SEO.<\/p>\n

What is a slug?<\/em><\/strong> A slug is the part of the URL that uniquely identifies a page and it\u2019s in a format that is easily readable by both users and search engines.<\/em><\/p>\n

For example, let\u2019s take all the URLS that belong to this domain (reliablesoft.net). All URLs start with reliablesoft.net<\/em> and then each and every page or post of the website, has a unique slug.<\/em><\/p>\n

This is the part that comes after the \u201c\/\u201d.<\/em><\/p>\n

Example 1: https:\/\/www.reliablesoft.net\/diy-seo-tutorial-for-beginners\/<\/a> -> The slug is \u201cdiy-seo-tutorial-for-beginners\u201d.<\/p>\n

Example 2: https:\/\/www.reliablesoft.net\/search-engine-marketing\/<\/a> -> The slug is \u201csearch-engine-marketing\u201d.<\/p>\n

Example 3: https:\/\/www.reliablesoft.net\/h1-tag\/<\/a> -> The slug is \u201ch1-tag\u201d.<\/p>\n

The domain of a website and the slug make up the URL (Uniform Resource Locator) of each and every page.<\/p>\n

The URLs for all pages published on the Internet are unique. No published page can have the same URL as another page on the Internet.<\/p>\n

Why are slugs important?<\/strong><\/p>\n

Slugs are important for two main reasons:<\/p>\n

    \n
  1. It\u2019s one of the signals taken into account by search engines during the ranking process. They read the slug<\/em> and try to understand what a page is about.<\/li>\n
  2. Easy to read slugs help users identify what content to expect for a page. For example, the slug of this page https:\/\/www.reliablesoft.net\/what-is-off-page-seo\/<\/a> is \u201cwhat-is-off-page-seo\u201d, which tells users exactly what kind of information they should expect to find on that page.<\/li>\n<\/ol>\n

    Optimizing your slugs will give you an advantage when it comes to SEO and usability. In the SEO World, the process of optimizing the slug is the same as creating SEO friendly URLS<\/a><\/strong>.<\/p>\n

    WordPress slugs<\/h2>\n

    It should be noted that the word slug<\/em> emerged from the WordPress community. You can configure your slug under Permalink Settings.<\/em><\/p>\n

    When you install WordPress for the first time, the URLS may look like this:<\/p>\n

    http:\/\/www.example.com\/?p=123<\/em><\/p>\n

    This is not SEO or user friendly, so the first thing you need to do is to configure WordPress to use the post name<\/em> as the slug instead of serial numbers.<\/p>\n

    When you go to SETTINGS \/ PERMALINKS, you will be presented with a number of options, as shown below.<\/p>\n

    \"WordPress
    Optimize WordPress Permalink Settings<\/figcaption><\/figure>\n

    The best approach is to select the Post Name<\/em> so that your post slugs will include the post name separated by dashes.<\/p>\n

    That was a great first step but there is one more step to make sure that your slugs are optimized for SEO.<\/p>\n

    When you create a new post (or edit an existing one), WordPress allows you to edit the slug of a page or post.<\/p>\n

    As you can see in the screenshot below, there is an EDIT button next to the permalink<\/em> of each page.<\/p>\n

    \"Edit
    WordPress: Edit Slug<\/figcaption><\/figure>\n

    When you click EDIT, you can make changes to the slug and optimize for both users and search engines, using the guidelines below.<\/p>\n

    Note: Optimizing the slug is not<\/u> a task for WordPress users only. You should try and optimize your slugs on other platforms as well.<\/p>\n

    How to optimize your Slug?<\/h2>\n

    Now that it\u2019s clear what a slug is and why it is very important for SEO, let\u2019s see how to best optimize it.<\/p>\n

    Include keywords you want to rank for<\/h3>\n

    Help Google and other search engines understand for which keywords you want to rank for the particular page or post, by including those keywords in the page slug.<\/p>\n

    For example, let\u2019s say that you want to rank for the keyword \u201cAsparagus Health Benefits\u201d and you wrote a post with title \u201c10 Amazing Health Benefits of Asparagus You Should Know About\u201d.<\/p>\n

    WordPress by default will create this slug: \u201c10-amazing-health-benefits-of-asparagus-you-should-know-about\u201d.<\/p>\n

    It\u2019s not that bad but it\u2019s long and includes many words and that can confuse Google and users.<\/p>\n

    What you can do to optimize it is to edit the slug and make it \u201casparagus-health-benefits\u201d.<\/p>\n

    This is shorter, easier to understand by users and gives search engines a big clue on the content of the page and the keywords you want to rank for.<\/p>\n

    Consider removing stop keywords<\/h3>\n

    As part of the optimization process, you should consider removing stop words from your slugs. These are common words that don\u2019t add any value or help in understanding the actual content of a page.<\/p>\n

    For example, words like \u201ca\u201d, \u201cthe\u201d, \u201con\u201d, \u201cand\u201d, \u201cis\u201d, \u201cof\u201d, \u201cyou\u201d and other similar words.<\/p>\n

    If you take another look at the above example, you will notice that I have removed these to make my slug cleaner and shorter.<\/p>\n

    Use dashes to separate words in a slug<\/h3>\n

    This is common practice these days but as a reminder, you should separate words in a slug using a \u201c- \u201cand not any other character.<\/p>\n

    Keep it short<\/h3>\n

    Shorter slugs are easier to understand and faster to process than longer slugs. This \u201casparagus-health-benefits\u201d is definitely better than this \u201c10-amazing-health-benefits-of-asparagus-you-should-know-about\u201d.<\/p>\n

    Another reason for keeping your slugs short and without stop keywords is the fact that search engines during the crawling and indexing process, are trying to match what the user has typed in the search box with page slugs.<\/p>\n

    If the find an \u2018exact match\u2019 then the particular page has an added advantage over other pages that may use longer slugs.<\/p>\n

    For example, if the user is searching for \u201casparagus health benefits\u201d, my page that has an exact match slug, has a small advantage over other pages with slugs that are not exact match.<\/p>\n

    Of course, this is not the only factor taken into account during the ranking process. This one is actually of low importance.<\/p>\n

    There are a lot more important factors<\/a><\/strong> that are used but since SEO is about optimization<\/a><\/strong>, you should try and optimize your slugs.<\/p>\n

    Finally, don\u2019t forget that the URL of a page is shown in the search results so short and descriptive slugs, will encourage more clicks and visits to your website.<\/p>\n

    \"Slug
    Slug in Search Results<\/figcaption><\/figure>\n

    Use only lowercase characters<\/h3>\n

    This is also common practice but worth mentioning again. Avoid having Capital characters in your slug but use only lowercase letters.<\/p>\n

    The reason is that webservers like Apache (used by WordPress and other popular CMS), inteprept this: http:\/\/www.example.com\/My-Page-Slug<\/em> to be a different URL than this: http:\/\/www.example.com\/my-page-slug <\/em>or this http:\/\/www.exampe.com\/My-page-slug.<\/em><\/p>\n

    Conclusion<\/h2>\n

    A slug is the part of the URL that is unique for each and every page of a website.<\/p>\n

    When creating a new page or post, you should spend some time to optimize your slug by including the keywords you want to rank for and by excluding stop words. Keep your slugs short and descriptive, use dashes as the word separator and use only lowercase characters.<\/p>\n

    Important:<\/strong> If you decide to change the slug of an existing post, then this is the same as changing the URL and this means that you should add 301 Redirections (to redirect old URL to New URL), otherwise the change may have a negative impact on your SEO.<\/p>\n","protected":false},"excerpt":{"rendered":"

    Beginners to SEO may come across the word slug. Various articles refer to the post or page slug and the importance of optimizing it for better SEO, but what does this mean? In this post, you will learn what is a post slug and why it is very important for SEO. What is a slug? […]<\/p>\n","protected":false},"author":2,"featured_media":9572,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"om_disable_all_campaigns":false,"_genesis_hide_title":false,"_genesis_hide_breadcrumbs":false,"_genesis_hide_singular_image":false,"_genesis_hide_footer_widgets":false,"_genesis_custom_body_class":"","_genesis_custom_post_class":"","_genesis_layout":"","mc4wp_mailchimp_campaign":[]},"categories":[3],"tags":[365,366,364],"_links":{"self":[{"href":"https:\/\/www.reliablesoft.net\/wp-json\/wp\/v2\/posts\/9566"}],"collection":[{"href":"https:\/\/www.reliablesoft.net\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.reliablesoft.net\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.reliablesoft.net\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.reliablesoft.net\/wp-json\/wp\/v2\/comments?post=9566"}],"version-history":[{"count":1,"href":"https:\/\/www.reliablesoft.net\/wp-json\/wp\/v2\/posts\/9566\/revisions"}],"predecessor-version":[{"id":29006,"href":"https:\/\/www.reliablesoft.net\/wp-json\/wp\/v2\/posts\/9566\/revisions\/29006"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.reliablesoft.net\/wp-json\/wp\/v2\/media\/9572"}],"wp:attachment":[{"href":"https:\/\/www.reliablesoft.net\/wp-json\/wp\/v2\/media?parent=9566"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.reliablesoft.net\/wp-json\/wp\/v2\/categories?post=9566"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.reliablesoft.net\/wp-json\/wp\/v2\/tags?post=9566"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}