
Short answer: An SEO-friendly URL is short, readable and describes the page in plain words, for example /blog/seo-friendly-urls/ rather than /index.php?p=4127. Use lowercase words separated by hyphens, your audience’s language, a logical folder structure and as few parameters as possible. Keywords in URLs are only a very light ranking factor, so never change a working URL just to add one, and always 301 redirect any URL you do change.
This guide is for site owners, developers and content teams setting up a new site, launching new pages or tidying an old URL structure. You will be able to write clean slugs, plan folders, handle parameters and non-English URLs, and, just as important, know when to leave an existing URL alone.
What makes a URL SEO-friendly?
A URL is the address of a page. An SEO-friendly URL lets both people and search engines guess what the page is about before opening it. Google’s URL structure guidelines say to use readable words rather than long ID numbers where possible, and give examples like /wiki/Aviation as recommended and /index.php?topic=42&area=3a5ebc944f41daa6f849f730f1 as not recommended.
The parts of a URL
| Part | Example | What to decide |
|---|---|---|
| Protocol | https:// | Always HTTPS, one version only |
| Subdomain | www. or shop. | Pick www or non-www and redirect the other |
| Domain | example.com.pk | Brand name, chosen once |
| Folder (path) | /services/ | Reflects site sections; keep shallow |
| Slug | /seo-audit/ | Short, descriptive, hyphenated |
| Parameters | ?colour=blue&sort=price | As few as possible; never for core content |
| Fragment | #pricing | Fine for jumping within a page; not for different content |
Do URLs affect rankings?
Only a little. John Mueller has called keywords in URLs “a very small ranking factor” (2016), “overrated” (2017) and “very, very lightweight” (2021), as collected by Search Engine Journal. Where a good URL helps more is indirectly:
- Clicks and trust: a readable URL shown in results, shared on WhatsApp or pasted in an email tells people what they will get.
- Crawling and duplicates: clean, consistent URLs avoid many versions of the same page, which wastes crawling and splits signals.
- Site structure: folders mirror your sections, which helps you organise content and internal links. See my guide to site architecture.
The practical point: get URLs right when you create pages. Changing working URLs later for a small keyword gain usually costs more than it returns.
Rather have an expert do this for you?
Hand it over and get back to running your business.
How to create SEO-friendly URLs: the rules I use
1. Describe the page in a few words
Base the slug on the page’s main topic, usually its primary keyword, cut to the essential words. “How to Create SEO-Friendly URLs: A Guide for Beginners” becomes /seo-friendly-urls/ or /how-to-create-seo-friendly-urls/. My free SEO slug generator turns a title into a clean slug.
2. Use hyphens and lowercase
Google recommends hyphens rather than underscores. Google’s URL handling is also case sensitive, so /Services/ and /services/ can be treated as different pages. Use lowercase everywhere and redirect uppercase versions.
3. Keep it short and drop filler words
There is no official length limit that matters for SEO, but shorter URLs are easier to read and share. Remove words like “a”, “the”, “and” and “of” when the slug still reads clearly without them. Keep them where removing them changes meaning.
4. Use a shallow, logical folder structure
Two levels are usually enough: /services/local-seo/, /blog/seo-friendly-urls/. Deep paths like /category/sub/sub-sub/2026/10/post/ add length without helping anyone. Only include a folder if it is a real section with its own page.
5. Leave out dates and things that change
Avoid years, dates, prices and post numbers in slugs. A URL with “2025” looks stale in 2026 and forces you to choose between a misleading URL and a redirect. Put the year in the title if needed, not the URL. Keeping the same address lets you update the page in place for years.
6. Use as few parameters as possible
Google advises using as few parameters as you can. Core pages should have clean static paths. Parameters for sorting and filtering are fine on shops, but control which versions are indexable with canonical tags. My guides to URL parameters and faceted navigation cover this.
7. Write in your audience’s language
Google says to use words in your audience’s language, and to percent-encode non-ASCII characters. For an Urdu page, either an Urdu slug (which displays as Urdu in most browsers and is percent-encoded behind the scenes) or a short transliterated English slug can work; pick one rule for the whole section. For multi-country sites, a folder per language such as /ur/ or /ar/ keeps things clear; see ccTLD vs subfolder vs subdomain.
8. Keep one canonical version of every URL
Choose HTTPS, www or non-www, and trailing slash or no trailing slash, then redirect every other variant to it. Mixed versions are one of the most common causes of duplicate content I find.
Good and bad URL examples
| Avoid | Better | Why |
|---|---|---|
| /index.php?page_id=4127 | /seo-audit/ | Readable and descriptive |
| /Blog/SEO_Friendly_URLs | /blog/seo-friendly-urls/ | Lowercase, hyphens |
| /2025/03/14/best-seo-tools-2025/ | /blog/best-seo-tools/ | No dates; can be updated in place |
| /services/seo/seo-services/best-seo-services-karachi-pakistan-cheap/ | /seo-services-karachi/ | Short, no repetition or stuffing |
| /shop/#/shoes/running | /shoes/running/ | Google generally does not support fragments for different content |
| /products/red-shirt?sessionid=8f3a9 | /products/red-shirt/ | No session IDs in URLs |
SEO-friendly URL checklist
Check every new URL before publishing
- HTTPS: the page loads only on https, with one host (www or non-www).
- Readable: a person can guess the topic from the URL.
- Short slug: the essential words only, usually 2 to 5.
- Lowercase: no capital letters anywhere in the path.
- Hyphens: words separated by hyphens, no underscores or spaces.
- No dates or numbers that will change: no year, price or post ID.
- Shallow path: folders reflect real sections, two levels in most cases.
- No stuffing: the keyword appears once, not repeated in folder and slug.
- No session IDs or unneeded parameters: core content has a clean path.
- Consistent trailing slash: matches the rest of the site; the other form redirects.
- Audience language: non-English slugs follow one rule across the section.
- Linked and listed: internal links and the XML sitemap use exactly this URL.
Ticks are saved in your browser. Clear them before checking the next URL.
Changing existing URLs safely
If a page already ranks and earns links, think twice. Change URLs only when the current ones are genuinely broken: ID-only addresses, session IDs, duplicate versions, a site migration, or a slug that no longer describes the page. When you do:
- Map old to new in a spreadsheet, one row per URL.
- Add 301 redirects from each old URL directly to its new one. Google says permanent redirects do not cause a loss in PageRank and that you should keep them for as long as possible, generally at least one year (Google Search Central).
- Update internal links to point at the new URLs, so you do not rely on redirects or create chains of them.
- Update canonicals, hreflang and the XML sitemap.
- Test a sample with my redirect checker and watch Search Console for 404s. Google notes rankings may fluctuate temporarily before settling.
Worked example: WordPress permalinks on a new site
A new WordPress site defaults to plain links such as /?p=123. Before publishing anything, go to Settings, then Permalinks, and choose “Post name”, which gives /sample-post/. Then, for each post, edit the slug in the editor so it is short: WordPress builds it from the full title, so “10 Simple Ways to Fix a Slow WooCommerce Store in 2026” becomes a long slug with the year; trim it to /fix-slow-woocommerce-store/.
If the site already has content on plain or date-based permalinks, changing the setting changes every URL at once. WordPress redirects some old formats automatically, but test a sample and add redirects where needed before you switch, ideally during a quiet period.
Frequently asked questions
Should I put keywords in my URL?
Yes, when it describes the page naturally, because it helps people understand the link. But Google has described keywords in URLs as a very lightweight factor, so one natural mention is enough and it is not worth changing a ranking URL just to add one.
How long should a URL be?
Google does not set a length for SEO purposes. Aim for the shortest URL that still describes the page clearly; for most slugs that is 2 to 5 words.
Should URLs end with a trailing slash?
Either is fine. What matters is consistency: use one form across the site and 301 redirect the other, so you do not have two URLs for every page.
Are underscores bad for SEO?
Google recommends hyphens instead of underscores to separate words. Underscores will not break a page, but for new URLs there is no reason to use them. Do not change existing underscore URLs just for this.
Can I use Urdu or Arabic characters in URLs?
Yes. Google advises using your audience’s language, and non-ASCII characters are percent-encoded automatically. Just be consistent within a section and make sure the encoded URLs are used everywhere, including links and the sitemap.
Sources
- Google Search Central, “URL structure best practices for Google Search” (last updated 2025).
- Google Search Central, “Site moves with URL changes” (documentation).
- Search Engine Journal, “URLs As A Google Ranking Factor: What You Need To Know” (2023).
If you are planning a new site or a URL clean-up and want it done without losing traffic, my technical SEO service covers URL structure, redirects and migrations, or you can ask me about your URLs.
Request received
Thank you! Saad will contact you within the next 24 hours.
Keep an eye on your phone and inbox.
