What Is a URL Slug? Meaning, Examples and Best Practices

Aug 23, 2024 | Search Engine Optimisation

Nel Cooray
Nel Cooray
Managing Director at Digifix

Last updated: November 2026.

A URL slug is the part of a web address after the domain that names one page. On digifix.com.au/what-is-a-url-slug/, the slug is what-is-a-url-slug. DigiFix writes and repairs these labels for clients every week, and the rule is simple: get it short and readable once, then add a redirect before you change a live one.

Key takeaways

  • Google recommends hyphens rather than the other common separator, because hyphens help people and search engines identify the separate concepts in an address (Google Search Central, URL structure).
  • Google Search treats addresses as case sensitive, so /apple and /APPLE are distinct pages with their own content, which is the reason every slug should stay lowercase (Google Search Central, URL structure).
  • A permanent redirect tells Google the target should be treated as canonical, so a 301 is what carries the old page signals across to the new address (Google Search Central, redirects).
  • Squarespace states that if you change a URL slug, the old address will show a 404 until you create a 301 redirect yourself (Squarespace documentation, URL slugs).
  • Wix creates the 301 redirect for you when a page address changes, but only once a domain is connected to the site (Wix documentation, Changing Your Page URL).

What does a URL slug look like?

Read an address in parts and the slug is easy to find. Take the page you are on. The protocol is https. The domain is digifix.com.au. Everything after the first forward slash is the path, and the final segment of that path is the slug.

https://digifix.com.au/digital-marketing-services/seo-services/

In that address the slug of the page is seo-services, and digital-marketing-services is its parent section. A slug can hold several words, so digifix.com.au/how-to-write-seo-friendly-urls/ has a slug of how-to-write-seo-friendly-urls. Words are joined with hyphens because that is the separator both readers and search engines expect.

One distinction causes most of the confusion: the slug is not the whole address. The slug is the label for one page. The address is the domain, the path and the slug together. When a content system asks you to edit the slug, it is asking about the last label only, and it usually shows you the full address it is about to produce.

A web address split into four labelled parts: the protocol https, the domain digifix.com.au, the section path digital-marketing-services, and the slug seo-services. The slug is highlighted in a dashed purple box and described as the only part most editors change. PROTOCOL https:// DOMAIN digifix.com.au SECTION PATH /digital-marketing-services SLUG /seo-services THE WHOLE THING IS THE URL https://digifix.com.au/digital-marketing-services/seo-services/ The slug is the only part most editors ever touch. Change the domain and you move the whole site. Change the slug and you move one page.
A labelled URL. The slug is the final label on the path, and it is the one piece a content system lets you edit without touching anything else. Diagram by DigiFix, November 2026.

How is a slug different from a URL?

A URL is the whole address. A slug is one segment of it. A permalink is a third idea again: it means the permanent address of one piece of content, the one you expect to keep working for years.

WordPress defines it the same way. Its documentation says permalinks are the permanent URLs to your individual pages and blog posts, and that the address for each post should be permanent and never change, which is where the name comes from (WordPress.org, Permalinks screen). So a permalink is not a different kind of address from a URL. It is a URL you have decided is permanent.

The words get used interchangeably in conversation and that is mostly harmless. It stops being harmless when somebody asks for a slug change and actually means a permalink structure change, because that second request rewrites every address on the site at once rather than one page.

TermWhat it meansExampleWho changes it
URLThe complete web address of a resourcehttps://digifix.com.au/blog/Rarely anyone, directly
SlugThe final label on the path, naming one pageblogAn editor, in the page settings
PermalinkThe permanent address of one piece of contenthttps://digifix.com.au/blog/A developer, when a page moves
Permalink structureThe pattern every address on the site follows/%postname%/Once, at build time, site wide

The four terms people mix up. Only the slug is normally an everyday editorial decision. Structure detail from WordPress.org, Permalinks screen, November 2026.

Less than a title tag, more than most people assume. A slug is a small relevance signal and a large usability one, and the usability half is where the value actually sits.

Google states that parts of the address can be displayed in search results as breadcrumbs, so people use the address itself to judge whether a result will be useful (Google Search Central, SEO Starter Guide). That is the whole argument in one sentence: the slug is read by a human at the moment they decide whether to click you or the result beneath you.

Readability is the second reason. A slug of /seo-services tells a person what the page is before they click, then tells them again when they paste the link into an email or a chat. A slug of /?p=1847 tells them nothing and looks like a mistake. Google recommends readable words rather than long ID numbers in an address for exactly this reason (Google Search Central, URL structure).

The third reason is that slugs get copied. They end up in shared links, in citations, in messages, and in the anchor text other people write when they cite you. A readable slug survives that trip intact and a parameter string does not.

The fourth is cost. Once a page has links, rankings and traffic, changing its slug means a redirect and a round of internal link updates. Getting the slug right before publication costs nothing, which is the argument for spending five minutes on it at the start rather than a project on it in year three. Our on page SEO checklist covers the rest of the on page set.

Are your URLs holding pages back?

We audit the address structure of your site, flag the slugs that are costing you clicks, and plan the redirects if any page needs to move. It starts with a look at what you already have.

Book a free URL review

What are the URL slug best practices?

Five rules cover almost every case. None of them are Google requirements, and all of them are worth following, because each one removes a way for an address to go wrong later.

Use the main keyword

The slug should carry the phrase the page targets, in the form a person would say it. A page about email marketing in Melbourne wants /email-marketing-melbourne/, not /services/marketing/email/2. Put the keyword first where the reading order allows it.

Do not stuff synonyms in to cover more queries. A slug is a label, and a label that tries to answer four questions reads as spam to the person deciding whether to click. Cover the synonyms in the page copy, where they read as language rather than as a list.

Keep it short and readable

Three to five words is the target. Long slugs get truncated in some interfaces and edited by hand when people share them, which is how a careful address turns into a broken one. If the slug needs a comma to make sense, the page probably needs splitting into two pages.

Use hyphens, not the other separator

Google recommends separating words with hyphens, and advises against the character programming languages use to keep words together, because hyphens help people and search engines identify the separate concepts in an address (Google Search Central, URL structure). Google also advises against simply running words together: /greendress is worse than /green-dress.

Squarespace enforces a related rule inside its own product, stating that URL slugs must be all lowercase and that uppercase characters you type are converted automatically (Squarespace documentation, URL slugs). A dash is the only separator that survives every platform unchanged, which makes it the safe default.

Use lowercase letters only

Lowercase, no spaces, no punctuation, no accented characters. Google is explicit that its URL handling is case sensitive, treating /APPLE and /apple as distinct addresses with their own content (Google Search Central, URL structure). If your server treats them the same, convert everything to one case so search engines can tell they are the same page.

Squarespace shows what happens when the two disagree: a visitor who types capitals sees a 404 instead of the page, and the fix is to create redirects from the capitalised versions (Squarespace documentation, URL slugs). Lowercase slugs avoid that whole class of problem before it starts.

Leave dates out of the slug

A slug of /seo-tips-2026/ dates the page the moment it publishes and forces either a stale address or a redirect every January. Put the year in the title tag where it can help click through rate, and keep it out of the address where it only ages the page. The what is a title tag guide covers that trade off.

The same logic applies to version numbers, internal project codes and anything else that changes while the content does not. A slug should describe the subject, and the subject rarely changes.

RuleSlug that worksSlug that failsWhy
Keyword first/email-marketing-melbourne//services/2/A reader knows the page before clicking
Short/seo-audit//complete-seo-audit-service-for-small-businesses/Long slugs get truncated and hand edited
Hyphens/green-dress//greendress/ or /green_dress/Google recommends hyphens as the word break
Lowercase/about-us//About-Us/Google treats case as significant
No dates/seo-tips//seo-tips-2026/A dated slug ages the page and forces a redirect

Five rules with a pair of examples each. The failing column is the pattern we find in audits rather than a straw man. Source: Google Search Central, URL structure, accessed November 2026.

How do good slugs differ from bad ones?

Side by side, the difference is obvious, which is the reason this table is worth keeping. Each failing slug below is a pattern from a real audit, anonymised, next to the version we would ship instead.

Current slugBetter slugWhat is wrong with it
/services/3//content-marketing/A number tells a reader and a search engine nothing
/best-seo-agency-sydney-services-australia//seo-agency-sydney/Five words of repetition plus a stray country name
/how_to_optimise_your_site//how-to-optimise-your-site/The other separator, which Google advises against
/Blog/SEO-Tips//blog/seo-tips/Mixed case, which Google treats as significant
/web-design-2023//web-design/A year that dates the page and forces a redirect
/?p=1847/contact/The default address, unedited since publication

Six slugs from real audits beside the replacement we would ship. The failing column is what a default setting or an unedited page produces. Source: DigiFix client audits, November 2026.

How do you edit a slug in each system?

The job is the same everywhere and the menus are not. Below is the exact path in the four systems our clients use most. The difference that matters most is not where the field lives, it is whether the platform creates the redirect for you or leaves it as your job.

WordPress

Open the post, click the permalink line directly under the title, and edit the text in the box that appears. WordPress saves the new slug with the post. If you cannot see that line, open Screen Options at the top of the editor and make sure the permalink panel is enabled.

The site wide pattern is a separate setting, under Settings then Permalinks, where the Post name option produces a clean address such as /sample-post (WordPress.org, Permalinks screen). Changing that setting rewrites the address of every existing post at once, so treat it as a project rather than a preference. Keep internal links pointing at the new address, which our guide on improve on page SEO in WordPress covers.

Shopify

Shopify calls the slug a URL handle, and it sits in the search engine listing section of the product, collection or page editor. Shopify documents URL redirects as the way to keep an old address working after a change, created from Content then Menus then View URL Redirects (Shopify documentation, URL redirects). Set the Redirect from field to the old address and the Redirect to field to the new one, then save.

Two Shopify specifics are worth knowing. Redirects start working immediately, and a 301 is cached by browsers and search engines, so removing one later does not undo it in a visitor cache that has already seen it (Shopify documentation, URL redirects). Handles are also shared across products, collections and pages, so a handle you want may already belong to something else.

Wix

In the editor, click Pages and Menu, click the More Actions icon beside the page, choose SEO basics, then enter the address under URL slug and press Enter (Wix documentation, Changing Your Page URL). Wix states that changing a page address creates an automatic 301 redirect taking visitors and search engines from the old address to the new one, and notes that a domain must be connected for that to apply (Wix documentation, Changing Your Page URL).

Because Wix handles the redirect, the remaining risk is your own content. Any hard coded link in a blog post, a button or an email campaign still points at the old address, so search your pages for it after the change.

Squarespace

Open the page or item settings and edit the URL slug field. Squarespace assigns a slug from the title and lets you override it, and it keeps slugs lowercase by converting any capitals you type (Squarespace documentation, URL slugs).

The important difference is the redirect. Squarespace states that the old address will not automatically redirect, and that an old link, a typed address or a scanned QR code will show a 404 until you create a 301 redirect (Squarespace documentation, URL slugs). On Squarespace the redirect is a step you must remember, not one the platform does for you.

PlatformWhere the slug livesRedirect on changeWatch out for
WordPressPermalink line under the post titleCore redirect covers a slug changeChanging the permalink pattern rewrites every address
ShopifyURL handle in the search listing sectionAdd a URL redirect, live immediatelyCached 301s outlive the redirect record
WixPages and Menu, then SEO basicsAutomatic 301 on renameNeeds a connected domain, and your own links still point back
SquarespacePage or item settings, URL slug fieldNot automatic, a 301 is requiredPrinted links and QR codes keep pointing at the old address

The same job in four systems, with the redirect behaviour that decides how risky the change is. Platform detail from WordPress.org, Permalinks screen, Shopify documentation, URL redirects, Wix documentation, Changing Your Page URL and Squarespace documentation, URL slugs, all accessed November 2026.

Moving a page that already ranks?

We map every internal link that points at the old address, set the redirect, and check the new page is the one search engines keep. Do it before the move rather than after the traffic drops.

Plan a slug migration

Should you change a live slug?

Sometimes yes, and more often than people expect, no. Change it when the slug is actively costing you something: a misspelled product name, a number where a word belongs, a year that makes the page look abandoned, or a phrase that no longer matches what the page is about.

Leave it alone when the only argument is that a different phrase would be slightly better. The ranking difference between a good slug and a marginally better one is small, and the risk of a move is not. Google treats a permanent redirect as a signal that the target should be canonical, which is the mechanism that preserves the page (Google Search Central, redirects), but a redirect chain built up over several moves is a different and worse situation.

If you do move a page, the order matters. Pick the final address once, so you do not move twice. Set a permanent 301 from the old address to the new one at the server, which Google recommends as the most reliable option (Google Search Central, redirects). Then update every internal link that pointed at the old address, because a redirect is a fallback and an internal link that goes straight to the new page is faster for everyone. Finally update the canonical tag, the sitemap entry and any paid campaign that used the old address, then watch the page in Search Console for a fortnight.

What this looks like in practice

A Melbourne professional services client had a service page at /services/seo-2/ that had ranked on page two for its main term for two years. The address was invisible in the problem: the page content was fine, but the slug carried no keyword, the parent section was a folder of numbered leftovers, and the click through rate was well below the pages around it.

What we did, in order. Week one: confirmed the target phrase from Search Console impressions, chose /seo-services-melbourne/ as the final address, and exported every internal link pointing at the old one, which came to 34 links across 12 posts. Week two: set the 301 at the server, updated all 34 internal links in one pass, corrected the canonical tag and resubmitted the sitemap. Weeks three to six: monitored the old address for 301 status and the new one for impressions, and left the content untouched so any movement was attributable to the move alone.

What waiting would have cost is the part people underestimate. Every month the page stayed at /services/seo-2/ it kept collecting links and citations pointing at an address that said nothing, and the eventual move would have had to carry all of them. Moving early is cheaper than moving late, which is the same argument as getting the slug right before you publish. If a rebuild is already on the table, our enterprise website migration service exists for exactly this sequence.

What else do people ask about URL slugs?

Is a slug the same as a permalink?

No, though the words are used loosely. A slug is the final label on the path, the part you edit per page. A permalink is the permanent address of a piece of content, which includes the domain and any parent sections as well as the slug. WordPress describes permalinks as the permanent URLs to your pages and posts, which is the clearest way to hold the distinction (WordPress.org, Permalinks screen).

Should a slug include the year?

Usually not. A year in the slug means the address is out of date the moment the content is refreshed, and fixing it later costs a redirect. Search engines read the title tag and the page content for freshness signals, so the year does more work there. Keep it in the title where it can lift click through rate, and keep the address stable.

How long should a slug be?

Three to five words, and shorter is usually better. Google recommends readable words rather than long ID numbers, and advises shortening addresses by trimming unnecessary parameters (Google Search Central, URL structure). A slug long enough to need truncating in a shared link will get edited by hand, and a hand edited link is how a working address turns into a broken one.

Does changing a slug hurt rankings?

A single move with a permanent redirect in place usually holds most of the position, because Google treats a permanent redirect as a signal that the target should be canonical (Google Search Central, redirects). The damage comes from the avoidable parts: a chain of redirects, internal links left pointing at the old address, or a canonical tag that still names the old page. Do all three properly at once and the risk is small.

Can a slug have capital letters?

It can, and it should not. Google treats addresses as case sensitive, so /About-Us and /about-us are distinct addresses with their own content (Google Search Central, URL structure). Squarespace converts capitals to lowercase automatically and warns that a visitor typing capitals will see a 404 instead (Squarespace documentation, URL slugs). Lowercase only removes the mismatch entirely.

Do I need to change my slug for SEO?

Only when the current one is actively costing you clicks or clarity. A slug that is slightly less than ideal does not justify a move on its own, because a move carries redirect work and a short period of uncertainty. Spend the effort on the title tag and the content first, since those carry more weight, and treat the slug as a fix for a specific, identifiable problem.

Want a second opinion on your addresses?

Send us the URL of the page you are thinking about changing. We will tell you whether it is worth the move, and what the redirect sequence would look like if it is. No charge for the first look.

Ask about your URL

Three quick slug checks you can do today

Open your five highest traffic pages and read each address out loud. If it does not describe the page, or it carries a year, or the words run together, it belongs on a short list. Our team can run the same check across the whole site.

Get a slug audit

Related reading: how to write SEO friendly URLs, how to create SEO friendly URLs and our what is a title tag guide. You can see the sites we have rebuilt in our portfolio, learn about about DigiFix, or browse the rest of the DigiFix blog. Our digital marketing services team covers web development and SEO services when a slug change is part of a larger rebuild.

Do you want more traffic?

—————

Hi, we are an Australian digital agency doing groundbreaking work to help a business like yours reach its full potential.  My only question is will you qualify for our services?

[dsm_contact_form_7 cf7_library=”246589″ label_bottom_spacing=”0px” input_background_color=”#FFFFFF” _builder_version=”4.16″ _module_preset=”default” labels_text_color=”#000000″ background_color=”#FFFFFF” custom_button_one=”on” button_one_text_color=”#FFFFFF” button_one_bg_use_color_gradient=”on” button_one_bg_color_gradient_direction=”90deg” button_one_bg_color_gradient_stops=”#e02b20 0%|#8300e9 100%” button_one_bg_color_gradient_start=”#e02b20″ button_one_bg_color_gradient_end=”#8300e9″ button_one_border_width=”2px” button_one_border_color=”#FFFFFF” button_one_border_radius=”10px” button_one_icon=”%%28%%” z_index=”-1″ custom_margin=”10px||10px||true|false” custom_padding=”10px|10px|10px|10px|true|true” border_radii_image=”on|10px|10px|10px|10px” border_width_all_image=”1px” global_colors_info=”{}”][/dsm_contact_form_7]

Do you want more traffic?

—————

Hi, we are an Australian digital agency doing groundbreaking work to help a business like yours reach its full potential.  My only question is will you qualify for our services?

CONSULTING

Let's Grow Your Business

  • More visibility on Google
  • Get cited on ChatGPT, Claude and others
  • Thumb-stopping content across social
  • High-converting paid media campaigns
  • Smarter email with stronger retention
Book a Call

Stay Updated with the Latest in
Digital Marketing

Related Posts