---
url: /guide/base-path-rewriting.md
---
# Base Path Rewriting
Shelf automatically rewrites the VitePress base path so that documentation sites built with the default `base: '/'` work correctly when served under a product/version URL like `/configuration/v5/`.
## Why This Is Needed
VitePress bakes the `base` path into the build output at build time. A site built with `base: '/'` generates links like:
```html