SEO · On-Page SEO

URL Structure

Clear URLs help users trust a link and help search engines understand site structure.

Beginner 5 min Lesson 7 of 22
0/22 in SEO
On this page · 5 min · Beginner

Learning objectives#

  • Write readable, descriptive URLs
  • Organise URLs into logical folders
  • Handle parameters and trailing slashes
  • Change URLs safely with redirects

Explanation#

Good URLs are short, lowercase, use hyphens between words and describe the content: /tutorials/react/usestate-hook.

Folders mirror site structure and feed breadcrumbs.

Avoid session IDs and unnecessary parameters; filters and sorting parameters can create endless duplicates — handle them with canonicals or noindex.

If a URL must change, 301-redirect the old one to the new one and update internal links.

Code example: Before and after#

TextBefore and after Illustrative
❌ https://example.com/index.php?page=lesson&id=4821&lang=en&sessionid=a8f3
❌ https://example.com/Tutorials/React_Hooks/UseState%20Hook
✅ https://example.com/tutorials/react/usestate-hook


Redirect when renaming (Apache .htaccess):
Redirect 301 /tutorials/react/use-state /tutorials/react/usestate-hook
Expected output
The clean URL is readable, shareable, and its folders become breadcrumbs in search results.

This example is illustrative. Copy or download it and run it in your own environment; the expected output is shown above.

Step-by-step explanation#

  1. Use words, not IDs.
  2. Lowercase and hyphens only.
  3. Nest by section.
  4. Redirect old URLs permanently.

Real-world use case#

A site migration keeps its rankings because every old URL 301-redirects to its new equivalent.

Common mistakes#

Changing URLs without redirects

Old links break and rankings are lost.

Mixed case and underscores

/React_Hooks and /react_hooks can be treated as different URLs. Use lowercase and hyphens.

Best practices#

  • Short, descriptive, lowercase, hyphenated
  • Logical folders
  • One consistent trailing-slash policy
  • 301 on every URL change

Remember this#

/section/topic-name.

Hyphens, lowercase, no IDs.

Changed URL → 301.

Practice exercise#

Your task: Create an SEO-friendly URL for a lesson titled “ASP.NET Core Web API: JWT Authentication”.

Show solution
Text Illustrative
/tutorials/asp-net-core-web-api/jwt-authentication

Mini quiz#

URL Structure quizMultiple choice Question 1 of 1

Which redirect should be used for a permanently moved page?

Score so far: 0/0

Want more? Practise all SEO MCQs · SEO interview questions

My notes#

Saved in this browser.

Progress is saved in this browser. Sign in to sync.