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

# Subfolder hosting

> Serve Lettercamp at a path such as example.com/blog using your existing website host and proxy configuration.

Serve your Lettercamp publication under a path on your existing website, such as
`example.com/blog`. Your website host handles the proxy configuration.

Run `domain` from the same publication folder after its first deployment. The CLI
uses that folder's deployment site. No site-selection flags are required.

## Connect a subfolder

```bash theme={null}
npx lettercamp domain example.com/blog
```

A URL with a path selects subfolder setup automatically. Nested paths such as
`example.com/resources/blog` work too.

Choose **Vercel**, **Cloudflare**, or **nginx**. The CLI prints the proxy rules for
your existing website. Apply them using that host's configuration and deployment
workflow, then press Enter to verify the connection. You do not need the Lettercamp
dashboard. The CLI does not sign in to your hosting provider or deploy its configuration.

The proxy forwards `/blog` and its descendants to your Lettercamp site while
preserving the path. Your other website routes stay with your existing host.
Keep your current DNS and HTTPS setup; DNS records cannot route individual paths.

Lettercamp checks `https://example.com/blog/.well-known/lettercamp`, then rebuilds
your publication with `/blog` as its base path. It reports success once the build
is live. Use full URLs such as `https://example.com/pricing` for links to the main
website; publication links such as `/about` point inside the subfolder.

## Check or remove the connection

Run `npx lettercamp domain` to check progress or resume setup. Verification waits up
to ten minutes before asking you to run it again; your setup is saved.

A site can use one custom hostname or one subfolder at a time. Run
`npx lettercamp domain remove` and confirm to return to the Lettercamp address.
Wait for disconnection to finish before removing your website's proxy rules.
Remove an existing connection before adding a different address.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.