Blog Tutorial

Learn how Next.js App Router handles different dynamic routing patterns.

[slug]
Dynamic Segment
Exact match for single segments. Used for individual blog posts.
/blog/the-role-of-ai-in-modern-educationView Example →
[...slug]
Catch-all Segment
Matches one or more segments. Great for nested categories or crumbs.
/blog/category/AI in EducationView Example →
[[...slug]]
Optional Catch-all
Matches zero or more segments. Perfect for filterable archives or dates.
/blog/date/2026/05View Example →