---
title: Routing
description: Learn the fundamentals of routing for front-end applications with the Pages Router.
url: "https://nextjs.org/docs/pages/building-your-application/routing"
docs_index: /docs/pages/llms.txt
lastUpdated: 2025-04-15
prerequisites:
  - "Building Your Application: /docs/pages/building-your-application"
---

> For an index of all documentation, see [/docs/pages/llms.txt](/docs/pages/llms.txt).

The Pages Router has a file-system based router built on concepts of pages. When a file is added to the `pages` directory it's automatically available as a route. Learn more about routing in the Pages Router:

---

For a semantic overview of all documentation, see [/sitemap.md](/sitemap.md)

For an index of all available documentation, see [/docs/pages/llms.txt](/docs/pages/llms.txt)