I'm always excited to take on new projects and collaborate with innovative minds.

Address

Dhaka, bangladesh

Social Links

SEO

How to Write SEO-Friendly URLs for Your Website

Learn how to write clean, SEO-friendly URLs that help Google and visitors understand your pages — with simple rules, examples and mistakes to avoid.

How to Write SEO-Friendly URLs for Your Website

A URL is the first thing Google and your visitors see about a page. Before anyone reads your title or your first paragraph, the address in the browser bar has already told them something about what the page is. A clean, readable URL builds trust and helps search engines understand the topic. A messy one full of numbers, symbols and random words does the opposite.

I check URLs in almost every SEO audit I do, for my own e-commerce store and for other websites. It is a small detail that many site owners never think about, yet it affects how pages appear in search results, how often people click them and how easily they are shared. The good news is that writing good URLs is simple once you know the rules.

What Makes a URL SEO-Friendly?

An SEO-friendly URL is short, readable and descriptive. Anyone who reads it should be able to guess what the page is about. Compare these two addresses for the same article:

  • Good: example.com/seo-friendly-urls-website
  • Bad: example.com/index.php?id=4827&cat=12&ref=home

The first one tells you the topic immediately. The second tells you nothing, and it looks untrustworthy. Google has said for years that it uses words in URLs as a small ranking signal, and users treat readable URLs as a sign of a real, cared-for website. When a URL is shared in a message or printed on a card, a clean one is also far easier to remember and type.

Rule 1: Keep URLs Short

Short URLs are easier to read, share and remember. Aim for three to five words after the domain name, and cut anything that adds no meaning. Words like "and", "the", "of" and "a" can usually be dropped. For example, "how-to-write-seo-friendly-urls-for-your-website" works, but "seo-friendly-urls-website" is cleaner and says the same thing.

On an e-commerce store, this matters even more. Product pages with long, auto-generated addresses that include category paths, product codes and session IDs are hard to share and look unprofessional. A short slug built from the product name is almost always better. My technical SEO audit checklist for e-commerce websites includes URL structure as one of the first things to review.

Rule 2: Use Real Words, Not Numbers or Codes

Use words that describe the page. Numbers, dates and database IDs in a URL add nothing for the reader or for search engines, and they make the address harder to recognise when it appears in search results. The one exception is a year or a model number that is genuinely part of the topic — "best-laptops-2026" is meaningful, "article-4827" is not.

Separate words with hyphens, not underscores. Google treats hyphens as word separators, so "seo-friendly-urls" is read as three words. Underscores join words together, so "seo_friendly_urls" can be read as a single term. It is a small difference, but it costs nothing to do it the right way.

Rule 3: Match the URL to the Page Title

The URL, the title tag and the main heading should all point at the same topic. If your article is called "How to Write SEO-Friendly URLs for Your Website", a slug like "seo-friendly-urls-website" is a natural match. This consistency helps Google understand the page and helps visitors feel confident they have landed in the right place.

Do not stuff keywords into the URL. Repeating the same keyword three times or adding extra search terms you hope to rank for looks spammy and adds no benefit. One clear phrase that matches the page is enough.

Rule 4: Use Lowercase Letters Only

Always write URLs in lowercase. Web servers can treat uppercase and lowercase as different addresses, so "example.com/SEO-Guide" and "example.com/seo-guide" may be seen as two separate pages with the same content. That can split your ranking signals and create duplicate content problems. Lowercase everywhere, every time, avoids the issue completely.

Rule 5: Keep the Structure Flat and Logical

A simple structure is easier for everyone. A blog post can sit directly after the domain — example.com/seo-friendly-urls-website — without a deep folder path. For larger sites, one or two levels of folders are fine: a category, then the page. Deep nesting such as "blog/2026/11/seo/tips/urls/guide" buries the page and makes the address harder to read or share.

Keep the structure stable too. Changing a URL after a page is published breaks links from other sites, bookmarks and search results. If a change is unavoidable, set up a proper 301 redirect from the old address to the new one so that visitors and search engines are sent to the right place.

Common URL Mistakes to Avoid

A few mistakes show up again and again in audits. Avoid dynamic parameters such as "?id=123&session=abc" in public URLs. Avoid special characters, spaces and non-English characters that get encoded into long, unreadable strings. Avoid stop words and filler that lengthen the address without adding meaning. And avoid changing slugs after a page starts ranking — the short-term tidy-up is rarely worth the lost traffic.

It is also worth checking that your site does not serve the same page under several different URLs, for example with and without a trailing slash, or with "www" and without it. Pick one version as canonical and redirect the others. My guide on on-page SEO covers the title tags, headings and internal links that work together with good URLs.

Frequently Asked Questions

Do URLs actually affect Google rankings?

Yes, but only slightly. Words in a URL are a minor ranking signal. The bigger benefit is indirect: readable URLs get more clicks in search results, are shared more often and earn more links, and those things do help rankings.

Should I change old URLs to make them SEO-friendly?

Only if the current URL is genuinely bad — full of parameters or unreadable. For normal pages that already rank, leave them alone. If you do change one, always add a 301 redirect from the old URL to the new one.

How long should a URL be?

There is no strict limit, but shorter is better. A slug of three to five meaningful words is a good target. If your URL is longer than a line of text, look for words you can cut.

Should the URL contain the exact keyword?

It should contain the main topic of the page, which is usually your main keyword. That is enough — repeating the keyword or adding extra keywords does not help.

Small Detail, Real Difference

URL structure is not the most exciting part of SEO, but it is one of the easiest wins. A clean, descriptive, lowercase URL with hyphens costs nothing to create and keeps working for the life of the page. When you publish your next article or product, take thirty seconds to write the slug by hand instead of accepting whatever your system generates. That small habit, repeated across every page, makes your whole website easier for Google to understand and easier for people to trust.

SEO-Friendly URLs, URL Structure, On-Page SEO, technical SEO, Website SEO
6 min read
Nov 12, 2026
By Sourav Hasan
Share

Leave a comment

Your email address will not be published. Required fields are marked *

Related posts

Nov 14, 2026 • 6 min read
What Is Schema Markup and How It Helps Your Website Stand Out in Search
Nov 11, 2026 • 7 min read
How to Do a Competitor SEO Analysis for Your Small Business

Learn how to analyse competitors' SEO step by step — keywords, content...

Nov 10, 2026 • 6 min read
How to Check If Your Website Is Mobile-Friendly and Fix Common Issues

Most visitors now arrive on a phone. How to check whether your website...

Your experience on this site will be improved by allowing cookies. Cookie Policy