Skip to content

Latest commit

 

History

History
17 lines (10 loc) · 1.35 KB

File metadata and controls

17 lines (10 loc) · 1.35 KB
description icon
Set a custom subdirectory for your docs sites
folder-tree

Setting a custom subdirectory

{% 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 Cloudflareconfiguring-a-subdirectory-with-cloudflare.mdCloudflare.svg
Configuring a subdirectory with Vercelconfiguring-a-subdirectory-with-vercel.mdVercel.svg