EnlightenIt — Free on-page SEO readiness checker and guides for webmasters.

how to write SEO-friendly URLs

When it comes to optimising your website's URL structure, creating a solid foundation is crucial for search engine rankings and user experience. By understanding the fundamentals of SEO-friendly URLs, you can ensure that your website is easily discoverable by search engines and provides a seamless browsing experience for users. To get started, begin by examining your existing website's URL structure and identifying areas where improvements can be made. Consider using descriptive keywords in your URLs to provide context for both search engines and users. For instance, instead of using generic terms like 'index.php', try incorporating relevant words that accurately describe the content on each page. Additionally, make sure to keep your URLs concise and avoid excessive characters or special characters that may cause formatting issues.

Getting Started

Key Considerations

When crafting SEO-friendly URLs, it's essential to consider a few key factors. Firstly, use descriptive and concise language that accurately reflects the content of the page, avoiding unnecessary characters such as spaces or special characters where possible. Additionally, incorporate relevant keywords strategically, taking care not to overstuff the URL with excessive keyword usage, which can be detrimental to search engine rankings. A well-structured URL should also include a clear hierarchy of information, making it easier for users and search engines to navigate.

Practical Steps

To implement effective SEO-friendly URL strategies, start by conducting a thorough analysis of your website's current URL structure and identifying opportunities for improvement. Use descriptive keywords that accurately reflect the content of each page to create unique and meaningful URLs - aim for 3-5 key words per URL, separated by hyphens or underscores where necessary. Ensure that all URLs are concise, easy to read, and free from unnecessary characters such as special punctuation or excessive spaces. When rewriting URLs, test them in search engines to verify their accuracy and relevance before making any live changes.

How To Shape a Good URL in Practice

On a real site, the best URL is usually decided before the page is published, not after it has already been indexed. Start with the page purpose. If the page explains one topic, the URL should describe that topic in plain language, using lower-case words separated with hyphens. Keep it short enough that a person can read it out loud without losing the meaning. For example, a page about technical SEO audits does not need a long folder path or a date in the slug unless the date changes the meaning of the content. If your CMS automatically adds categories, IDs or odd characters, remove them where possible so that the finished address looks stable and intentional.

It also helps to keep one formatting rule across the whole site. Decide whether your URLs end with a trailing slash, whether you keep category folders, and how you handle old page names. Consistency matters because it reduces duplicate versions, makes internal linking cleaner, and gives you fewer redirect problems later. Once a URL is live, change it only when there is a clear reason, such as a wrong topic, a site migration, or an unreadable auto-generated slug.

Worked Example

Imagine a small agency has a page published as /services/page?id=18. The page is actually about local SEO audits for restaurants. A clearer URL would be /local-seo-audit-restaurants/. The safer rollout is to create the cleaner URL, move the page to it, add a 301 redirect from the old version, update the canonical tag, and then fix any navigation links, body links and XML sitemap entries that still point to the old parameter-based address. If the team skips those follow-up steps, Google may keep crawling both versions and users may continue sharing the old one.

Checklist Before Publishing

The usual mistakes are changing URLs just to make them look newer, stuffing several search terms into one slug, or letting upper-case and lower-case versions coexist. Those errors create more technical work without adding any real value.

Frequently Asked Questions

Should every URL contain an exact keyword?

No. The URL should describe the page clearly, but forcing every variation of a keyword into it usually makes the address harder to read and easier to break later.

Is it bad to leave stop words such as "and" or "for" in a URL?

Not always. If removing them makes the slug awkward, leave them. Clarity matters more than squeezing every URL down to the shortest possible version.

What should I do with old URLs after a rewrite?

Add a permanent redirect, update internal links, and keep the redirect in place. Deleting the old URL without a redirect wastes any authority and bookmarks it already had.

Do URL changes improve rankings on their own?

Usually not. Cleaner URLs help with clarity and maintenance, but the main gains come when the change also fixes duplication, crawl waste or confusing page targeting.

As you refine your website's on-page SEO, remember that technical SEO is just as crucial, and a single audit can uncover numerous opportunities for improvement. — Editor, EnlightenIt