SEO
GitBook handles most SEO automatically. Published sites are responsive, pre-rendered, and served via a global CDN, with little configuration needed from you.
Last updated
Was this helpful?
GitBook handles most SEO automatically. Published sites are responsive, pre-rendered, and served via a global CDN, with little configuration needed from you.
Published content adapts to any screen size — phones, tablets, and desktops.
Page URLs are based on the page title by default, but can be customized.
Canonical URLs prevent duplicate content issues.
HTML and Open Graph titles pull from the page and site title.
Meta and Open Graph descriptions pull from the page description.
Images support alt text, which helps both search engines and accessibility.
HTML is pre-rendered server-side, so crawlers don't need JavaScript to index your content.
GitBook doesn't generate keyword meta tags. Modern search engines don't use them for ranking — Google confirmed this in 2009.
GitBook automatically generates a sitemap for any published site that isn't set to unlisted. To find it, append /sitemap-pages.xml to your site's home URL — for example, gitbook.com/docs/sitemap-pages.xml.
All published content is cached and served via a global CDN. Faster load times improve both user experience and search rankings.
A custom domain like docs.example.com can improve search visibility compared to a yourorganization.gitbook.io subdomain. Set up a custom domain →
GitBook has no control over how quickly search engines index your content, but two things can help:
Link to your site from pages that are already indexed. When Google re-crawls those pages, it's more likely to discover your site.
Submit your site to Google directly. This requires a custom domain and ownership verification via a TXT DNS record. Submit your site to Google →
Moving content to GitBook or restructuring your site can break existing links and affect SEO. Set up redirects → to forward old URLs to new ones.
When you move or rename a page, GitBook automatically creates an HTTP 301 redirect from the old URL to the new one. Learn more about automatic redirects →
Last updated
Was this helpful?