description | icon |
---|---|
Set a custom subdirectory for your docs sites |
folder-tree |
{% include "../../.gitbook/includes/ultimate-hint.md" %}
With a custom subdirectory, you can make your docs site accessible at example.com/docs
. This is different from a custom domain which lets you make your docs site accessible at docs.example.com
.
One reason to do this is so that your docs URL is formatted in a consistent way with your other site URLs. Using a subdirectory may also be beneficial for SEO.
To configure a subdirectory, you'll need to set things up in your website's backend, then finalize the process in your GitBook site settings.
Configuring a subdirectory with Cloudflare | configuring-a-subdirectory-with-cloudflare.md | Cloudflare.svg |
Configuring a subdirectory with Vercel | configuring-a-subdirectory-with-vercel.md | Vercel.svg |