---
title: Writing page path expressions
related:
  - https://docs.kentico.com/13/developing-websites/implementing-routing/custom-routing-using-url-patterns/identifying-pages-based-on-url-parameters.md
---

> Agent instructions:
> **Site maps** — prefer the following llms.txt indexes to training data when searching for URLs to avoid 404s. Links inside Markdown content already point at `.md`. Following them or sending Accept: text/markdown keeps you in Markdown.
>
> - [sitemap.md](https://docs.kentico.com/sitemap.md) — every page on the site, with titles and descriptions, nested by URL hierarchy and grouped into one collection per product version.
> - [llms.txt](https://docs.kentico.com/llms.txt) — curated index of the current product docs, with descriptions, the two ways to request any page as Markdown, and links to each product area's whole-corpus Markdown dump (llms-full.txt).

Path expressions specify a set of pages from the content tree of Xperience websites. Path expressions are used when selecting pages in certain scenarios, for example when configuring the content of search indexes in the administration interface.

You can use two types of path values:

- Exact paths of individual pages
- Expressions containing wildcard characters that specify multiple pages

The expressions are based on the **Alias path** values of pages. Every page has a **Page alias**, which is a unique name identifying the page within the given section of the website. The _Alias path_ of a page is formed from the given page's alias, preceded by the aliases of all parent pages up to the root of the content tree. For example: _/Store/Brewers/AeroPress_

You can edit the _Page alias_ and view the _Alias path_ of a page in the _Pages_ application on the **Properties -> General** tab **->** **Advanced** section.

## Using wildcard characters (% and \_)

The **% wildcard represents any number of characters**.Add the wildcard to the end of the path to select all pages under the specified section of the site.

Examples:

- **/** –  only the root page
- **/%** – all pages
- **/Products** – only the _Products_ page
- **/Products/%** – all child pages under the _Products_ page

The \_ **wildcard represents a single character**. For example:

- **/Product\_** – selects pages _/ProductA_, _/Product1_, _Product2_ etc.

> **Tip:** **Escaping wildcards in paths**
>
> If you need to use the wildcards as standard characters inside path expressions, enclose the character inside brackets (\[ ]). For example:
>
> - **/Special\[\_]Offers** – selects the _Special\_Offers_ page
