URL là signal nhẹ cho Google hiểu nội dung, nhưng ảnh hưởng CTR đáng kể vì user đọc URL trước khi click — URL xấu mất click dù rank cao.
Best practices:
- Ngắn gọn, descriptive:
/blog/react-query-tutorialtốt hơn/blog/post?id=123 - Dùng hyphens (-) ngăn cách từ, KHÔNG dùng underscores (_) — Google coi hyphen là word separator, underscore không
- Lowercase only —
/Aboutvà/aboutlà 2 URLs khác nhau (duplicate content) - Tránh parameters khi có thể —
/products/shoestốt hơn/products?category=shoes
- Tránh thay đổi URL — nếu bắt buộc, 301 redirect URL cũ → mới
- Include keyword target — nhưng tự nhiên
- Tránh nested quá sâu —
/a/b/c/d/e/pagekém hơn/a/page
Trong Next.js: file-based routing tạo clean URLs tự động.
URLs are a lightweight ranking signal but have significant CTR impact since users read URLs before clicking — an ugly URL loses clicks even when ranking high.
Best practices:
- Keep them short and descriptive:
/blog/react-query-tutorialis better than/blog/post?id=123 - Use hyphens (-) to separate words, NOT underscores (_) — Google treats hyphens as word separators, underscores do not
- Lowercase only —
/Aboutand/aboutare two different URLs (duplicate content) - Avoid query parameters when possible —
/products/shoesis better than/products?category=shoes
- Avoid changing URLs — if unavoidable, use a 301 redirect from old to new
- Include target keywords — but keep it natural
- Avoid deep nesting —
/a/b/c/d/e/pageis worse than/a/page
In Next.js: file-based routing generates clean URLs automatically.