SEO-Friendly URLs: How to Write a Clean Web Address
By Neha
Look at these two addresses for the same page:
sharmasarees.in/index.php?cat=14&pid=2291&ref=hm_2
sharmasarees.in/sarees/banarasi-silk
You know what the second one sells before you open it. You could read it aloud over the phone. If a customer pasted it into a WhatsApp group, nobody would wonder whether it was safe to tap.
The first one says nothing to a person and very little to Google. Both lead to the same sarees.
The address of a page is called its URL, and the readable last part is often called the slug. Writing an seo friendly url is one of the cheapest improvements you can make to a website, as long as you do it at the right time. This guide covers what a good address looks like, the rules for writing one, and when you should leave an ugly address alone.
The parts of a web address
Take https://sharmasarees.in/sarees/banarasi-silk.
https://means the connection is secure. Every business site should have it.sharmasarees.inis the domain, the name you pay for each year./sarees/is a folder, a section of the site.banarasi-silkis the slug, the name of this one page.
You chose the domain once. The folders and slugs are chosen again every time someone adds a page, usually without much thought. That is where addresses go wrong.
Why the address matters
Three reasons, in order of importance.
People read it. The address appears in Google results above your title, in the browser bar, and in full whenever someone shares a link without a preview. A clear address tells the reader they are in the right place. A string of numbers and symbols looks like an advert or a scam.
It gets shared and typed. Addresses end up on visiting cards, flyers, invoices and Instagram bios. Short and readable ones survive that journey. Long ones get cut off or mistyped.
Google takes a small hint from it. Words in the address are a light signal about the page's subject. It is a minor factor compared with the content itself, so do not expect a ranking jump from a tidy slug. Think of it as a tie-breaker and a courtesy to the reader.
Eight rules for a good address
1. Use real words that describe the page
/services/root-canal-treatment beats /services/service-3 and /page?id=77. Use the words a customer would use, which are often the words they search with. Our guide to keyword research for small business shows how to find them.
2. Keep it short
Three to five words in the slug is plenty. Drop filler words such as "a", "the", "and", "of" and "for" when the meaning survives.
- Title: "How to Take Care of Your Silk Sarees During the Monsoon"
- Slug:
silk-saree-care-monsoon
3. Separate words with hyphens
Use a hyphen between words: wedding-photography. Not an underscore, not a space, not words run together. Google treats a hyphen as a gap between words. An underscore can make wedding_photography read as one long word, and a space turns into the ugly %20 when shared.
4. Use lowercase only
On many servers /Sarees and /sarees are two different addresses. One will work and the other will show an error, or worse, both will work and Google will see two copies of the page. Lowercase everywhere avoids the problem.
5. Leave out dates and numbers that will change
/diwali-offers-2024 is out of date the next year, and /top-7-tips is wrong the day you add an eighth. Use /diwali-offers and /monsoon-car-care-tips, then update the page each year. The address keeps whatever reputation it has built.
6. Do not stuff it
/best-dentist-indore-top-dentist-indore-cheap-dental-clinic helps nobody. Repeating keywords in the address looks like spam to people and makes no difference to Google. Say it once.
7. Keep folders shallow and sensible
One level of folder is useful: /services/, /blog/, /sarees/. It tells visitors where they are. Four levels, such as /products/women/ethnic/sarees/silk/banarasi, make long addresses that break whenever you reorganise the shop.
8. Avoid special characters
Stick to letters, numbers and hyphens. Ampersands, commas, apostrophes, brackets and the rupee sign all cause trouble somewhere along the way.
The URL slug generator applies these rules for you: paste a page title and it returns a short, clean slug.
A quick before and after
| Before | After |
|---|---|
/Services/Our_Services_Page_NEW | /services |
/blog/2023/08/14/post-112 | /blog/monsoon-car-care-tips |
/product?id=2291&colour=red | /sarees/banarasi-silk |
/best-ca-in-pune-top-ca-pune | /ca-services-pune |
/about-us-our-story-and-team-page | /about |
Should the address be in Hindi?
If your page is written in Hindi or another Indian language, you can use that language in the slug. Google understands it, and in search results it shows up in the proper script.
The catch is sharing. When a Devanagari address is copied into some apps, each letter is converted into a code, and a short slug becomes a long line of percent signs and numbers. It still works, but it looks alarming.
A practical middle path for most small businesses: write the page in Hindi and keep the slug in simple English letters, such as /hi/shaadi-photography. It stays readable for Hindi speakers and survives every app. If you run pages in more than one language, read our guide to hreflang tags as well.
When not to change an address
This is the part most advice skips. An address that has been live for a while has history. Google has it stored, other websites may link to it, and customers may have saved it. Change it carelessly and all of that points to an error page.
So:
- New pages: follow the rules above from the start. It costs nothing.
- Old pages that get visitors: leave the address alone unless it is truly broken or misleading. A slightly long slug is not worth the risk.
- Old pages you must change: set up a permanent redirect from the old address to the new one, so that anyone arriving at the old address is sent on automatically.
How to change an address safely
- List the old and new addresses side by side in a spreadsheet.
- Create a 301 redirect for each pair. A 301 is a permanent "this page has moved" notice that passes visitors, and most of the page's standing with Google, to the new address. The redirect generator writes the rules for common servers. WordPress plugins such as Redirection do the same from the dashboard.
- Update your own links. Menus, buttons and links inside other pages should point straight to the new address, not through the redirect.
- Check the canonical tag. The page should name its new address as the main one. The canonical checker shows what it currently says.
- Update your sitemap so it lists the new address, and resubmit it in Google Search Console.
- Test the old address in a browser. It should land on the new page in one step.
Our guide to broken links and redirects covers the details, including what to do after a full redesign.
One warning for WordPress users: changing the "Permalinks" setting changes the address of every post on the site at once. Do it on a brand-new site freely. On an established site, plan the redirects first.
Showing a clean path in Google results
Google often replaces the raw address in search results with a tidy path such as "Home โบ Sarees โบ Banarasi Silk". This is called a breadcrumb. You can encourage it by adding a small piece of structured data to the page. The breadcrumb schema generator produces it from your page names, with nothing to code by hand.
A clean folder structure makes this easy. If your addresses already follow the shape of your site, the breadcrumb almost writes itself.
A five-minute check of your own site
- Open your five most important pages and read each address aloud. Would a customer understand it?
- Look for capital letters, underscores, spaces and question marks.
- Look for years and numbers that are no longer true.
- Search Google for your business name and see how the addresses appear under each result.
- Note the worst offenders, then decide page by page whether a change is worth a redirect.
Frequently asked questions
Do keywords in the URL help SEO?
A little. Google has described words in the address as a very light ranking signal. The bigger benefit is that people are more willing to click and share an address they can read.
How long should a URL be?
There is no fixed limit that matters in practice. Aim for a slug of three to five words and a full address that fits on one line of a phone screen.
Will changing my URLs hurt my rankings?
It can, for a few weeks, even with redirects in place, while Google re-reads the pages. Without redirects the damage is larger and lasting. Change addresses only when the gain is clear.
Should URLs end with a slash?
Either is fine. What matters is choosing one form and using it everywhere, so that /sarees and /sarees/ do not exist as two copies. Most website builders handle this for you.
