> ## Documentation Index
> Fetch the complete documentation index at: https://algolia.com/llms.txt
> Use this file to discover all available pages before exploring further.

# pathAliases

> Mapping for replacing paths in hostnames.

* **Type**: `Record<string, Record<string, string>>`

Sometimes URLs are found through multiple names or are accessible from a different entrypoint depending on the environment.
The `pathAliases` setting transforms a path to a different path before crawling it.

For example, if you create a mapping for `{ "dev.example.com": { '/foo': '/bar' } }`,
and the crawler encounters `https://dev.example.com/foo/hello/`,
it's transformed to `https://dev.example.com/bar/hello/`.

See [`hostnameAliases`](/doc/tools/crawler/apis/configuration/hostname-aliases) to check conditions.

## Examples

```js JavaScript icon=code theme={"system"}
{
  pathAliases: {
    'dev.example.com': {
      '/foo': '/bar'
    }
  }
}
```
