Cosmic Hub

Website URL Structure: Best Practices for People and Search

Updated · 5 min read · By Alpha Ross, multimedia creator & website builder

Website URL Structure: Best Practices for People and Search

A good website address is short, readable and describes the page in plain words, with hyphens between words and as few extra characters as possible. Clear addresses help visitors understand where they are, help you manage the site, and keep search engines from wasting time on endless variations of the same page.

What a good address looks like

Compare two addresses for the same page: one that ends with a string of numbers and symbols, and one that ends with a few descriptive words. The second tells everyone what to expect before the page opens, and it is easier to share and to remember. A few rules produce addresses like that.

Use folders to show structure

A shallow folder structure that mirrors the menu helps people understand the site. A portfolio might have a folder for projects, with each project as a page inside it. Avoid going many levels deep. If you can explain the site's structure in a sentence, your addresses probably follow it. How the menu itself should be built is covered in the navigation guide.

Parameters and identification numbers

Parameters are the parts after a question mark that pass information to the page, such as a sort order or a tracking tag. They are needed on some pages, such as search results in a shop, but they can multiply the number of addresses very quickly. Keep them to a minimum, use separators in the standard way and avoid adding session numbers or tracking tags to the addresses you link to internally.

Fragments and scripts

The part after a hash symbol is a fragment. It is meant to move to a section of a page, not to change the content. If your site loads different content without a page reload, use the proper browser tools for changing the address instead of relying on fragments, so each view can be found and shared.

Problems to watch for

Some structures create more addresses than there are real pages. Search engines call this a URL explosion, and it slows down crawling.

To reduce these, block the problem patterns in the robots file where it makes sense, point duplicates to a preferred address as described in the canonical tag guide, and link internally only to the clean versions.

Changing addresses on a live site

If you must rename pages, treat it as a project. Make a list of old and new addresses, set permanent redirects from each old address, update internal links and the sitemap, and watch Search Console afterward. The steps are in the redirect guide. Changing addresses without redirects breaks links from other sites and loses visitors, so avoid it unless the benefit is clear.

Sites in several languages or countries

If you serve different countries or languages, keep them in a clear pattern: either separate country domains or one domain with a folder for each. Pick one approach and use it everywhere. Mixing patterns makes the site harder to maintain and to understand.

Checklist for a new page

  1. Choose two to five descriptive words that match the page topic.
  2. Join them with hyphens, in lowercase.
  3. Place the page in the folder where the menu suggests it belongs.
  4. Avoid dates, numbers and parameters unless they are essential.
  5. Check that there is only one address for the page.

Examples of good and weak addresses

Take a page about the cost of a one-page website. A strong address would be the domain, a folder for guides and then a short phrase such as one-page-website-cost. A weak one would end in a number, a mix of capitals and underscores, or a long chain of parameters recording where the visitor came from. The first is easy to read aloud, to type and to paste into a message. The second looks like a technical accident and invites mistakes.

The same thinking applies to images and files. A file named with a few clear words is easier to manage than one named with a camera number, and the name often becomes part of the address. Renaming files before you upload them takes seconds and keeps the site tidy.

Keep the structure consistent

Consistency is more valuable than perfection. If blog posts live in one folder, keep them all there. If the singular form is used for one section, do not switch to the plural in another. Visitors rarely notice a consistent pattern, but they do notice when it breaks. A consistent pattern also makes it easier to spot problems in reports, because you can see at once which addresses do not follow the rule.

FAQ

Should I put keywords in the URL?

Words that describe the page are enough. They help people, and natural words from the title usually do the job. Stuffing extra keywords adds nothing.

Do capital letters matter?

They can. Addresses may be treated as case sensitive, so keep to lowercase and make sure other versions redirect.

Should I use dates in URLs?

Only if the date is part of what the page is about. Otherwise the address looks outdated when the article is refreshed. See the guide to refreshing old posts.

How long can a URL be?

There is no single limit worth worrying about for small sites, but shorter addresses are easier to read and share.

What is the difference between a URL and a slug?

A slug is the last part of the address that identifies one page. The URL is the full address including the domain and folders.

Your next step: list the ten most visited pages on your site and read their addresses out loud. If one is hard to say, make a note to simplify it.

Read next

Explore more