How to Write SEO Friendly URLs for a Small Website
You publish a new page, glance at the address bar and see something like /index.php?p=4823 or /2026/11/10/my-first-post-about-our-new-bakery-opening-hours-and-menu.

You publish a new page, glance at the address bar and see something like /index.php?p=4823 or /2026/11/10/my-first-post-about-our-new-bakery-opening-hours-and-menu. Neither tells a person or a search engine much, and the second will look wrong the day your opening hours change.
Writing SEO friendly URLs is one of the easiest wins on a small website. It takes a minute per page, costs nothing, and prevents a whole category of problems later. Here is what a good URL looks like, how to set it up in common website tools, and when you should leave an old URL alone.
What makes SEO friendly URLs
A good URL is short, readable and describes the page. If you read it out loud to someone, they should be able to guess what is on the page without clicking.
Compare these three paths for the same page:
| URL path | Problem |
|---|---|
| /page?id=4823 | Says nothing about the content |
| /blog/2026/11/the-10-best-ways-to-choose-sourdough-flour-for-beginners-in-2026 | Too long, dated, and the number will go stale |
| /blog/sourdough-flour | Short, clear and still accurate in five years |
Search engines can rank pages with ugly URLs, and the URL is a small ranking factor at best. The real benefits are elsewhere: people are more likely to click a clean link when it appears in search results or in a message, they can remember it, and you avoid broken links when the page is updated.
Rules for writing a good URL
- Use the main topic words, not the whole title. A post titled "How to Choose the Right Sourdough Flour for Your First Loaf" becomes /sourdough-flour or /choose-sourdough-flour. Three to five words is a good target.
- Use lowercase letters only. Some servers treat /About and /about as two different pages, which can split links and create duplicates.
- Separate words with hyphens. Not underscores, not spaces. Search engines read hyphens as word breaks; spaces turn into %20 and look broken.
- Drop filler words. "A", "the", "and", "of" and "for" rarely add meaning. Keep them only when the phrase reads strangely without them.
- Leave dates out. A date in the URL makes evergreen content look old and stops you from updating it cleanly.
- Avoid special characters. No accents, apostrophes, question marks or ampersands. Write plain letters and numbers.
- Keep folders shallow. /blog/sourdough-flour is fine. /blog/food/baking/bread/flour/sourdough-flour adds nothing and breaks if you reorganise categories.
Your URL should usually contain the same primary keyword as your title tag. If you have not written those yet, our guide on title tags and meta descriptions that earn clicks covers how the pieces fit together.
How to set clean URLs in common website tools
WordPress
Go to Settings, then Permalinks, and choose "Post name". That produces addresses like /sourdough-flour. Do this before you publish many posts, because changing it later changes every URL at once. When editing a post, you can adjust the individual slug in the URL field of the sidebar.
Hosted builders
Most website builders let you edit each page's URL in its page settings, often under a heading like "SEO" or "URL slug". By default, they copy the full page title, so trim it down every time you create a page.
Static sites
If you hand-build HTML or use a static generator, the file or folder name usually becomes the URL. Name files in lowercase with hyphens from the start, such as sourdough-flour.html, and configure the server to drop the .html extension if you prefer cleaner addresses.
Why you should not "fix" every old URL
A common piece of SEO advice is to go back and rewrite every messy URL on your site so it contains your keywords. I think that is usually a mistake for a site that already gets traffic.
Every time a URL changes, three things happen. Links from other sites and social posts now point to an address that no longer exists. Search engines have to discover the new address and transfer what they knew about the old one. And any internal links you forgot to update now land on an error page. Even with a perfect redirect, it can take weeks for search results to settle, and the gain from a prettier URL is tiny.
So the rule is simple. Write clean URLs for every new page from now on. Change an old URL only when it is actively wrong, for example it names a product you no longer sell, contains a date that makes it look stale, or exposes private information. When you do change one, set up a 301 redirect from the old address to the new one, update your own internal links, and check it in Search Console over the following weeks.
Common URL mistakes on small sites
- Duplicate pages with and without a trailing slash. Pick one style and redirect the other.
- Tracking parameters in internal links. Linking to your own pages with ?utm_source tags creates duplicate versions. Use them only on links from outside.
- Keyword stuffing. A URL like /best-cheap-sourdough-flour-buy-sourdough-flour-online looks spammy to people and helps nothing. Our post on why more keywords rarely help rankings explains why.
- Uppercase in file names. Especially on Linux hosting, where case matters, this causes broken links that only appear after you go live.
- Changing slugs while editing. Some tools rewrite the URL automatically when you change the title. Check the slug before you hit update on any published page.
How URLs fit with the rest of your site structure
A clean URL works best when the site behind it is organised the same way. If your blog has a handful of clear topics, a flat structure such as /blog/post-name or simply /post-name is easier to manage than nesting every post inside a category folder. Categories change as a site grows; URLs should not have to change with them.
Think about how pages link to each other as well. A clear, descriptive URL is easier to link to from other posts, and readers who hover over a link can see where it goes before they click. That builds a little trust on every page, which is the kind of quiet improvement small sites can make without any special tools.
A quick checklist before you publish
Before any new page goes live, read the URL once and ask: is it under about 60 characters, lowercase, hyphenated, free of dates and special characters, and does it contain the main topic in plain words? If yes, you are done. That one habit, repeated across every page, keeps your site tidy for years.
Frequently asked questions
How long should an SEO friendly URL be?
Aim for three to five words in the slug and under about 60 characters for the full path. There is no hard limit, but shorter URLs are easier to read, share and remember. Cut filler words before cutting meaning.
Should I include keywords in my URL?
Yes, include the main topic words once, in plain language. Do not repeat them or add extra variations. The URL is a small signal, so clarity for people matters more than squeezing in phrases.
Does changing a URL hurt SEO?
It can cause a temporary drop, even with a redirect, while search engines process the change. With a proper 301 redirect and updated internal links, most pages recover within a few weeks. Only change URLs when there is a clear reason.
More in SEO
SEO
How to Write a robots.txt File for a Small Website
Someone on a forum tells you your site needs a robots.txt file, so you paste in a block of rules you found, upload it, and move...
SEO
How to Fix Crawled Currently Not Indexed Pages in Google
You open the Pages report in Google Search Console and find 37 URLs sitting under "Crawled, currently not indexed." Google...
SEO
How to Set Up 301 Redirects When You Change a URL
You tidy up your site. A page called /services-page-2 becomes /web-design , an old blog post gets a cleaner address, and a...