Moving docs off GitBook sounds straightforward until you begin to list what can break. Every public URL is potentially a link someone bookmarked, shared or cited. Every callout, tab and embed may not survive a plain export.
GitBook is a capable platform, and plenty of teams outgrow a setup rather than a tool. Pricing structure, editing workflow and where help content should live are common reasons to move. Whatever the trigger, the risk is the same: a migration that changes URLs and strips components.
This guide walks through a nine-step plan that keeps both intact. It covers the export, the redirect map, block conversion, the domain cutover and the checks that follow. The steps work for any destination, and we’ll also show you where Pageloop fits.
Getting the migration right protects your search and AI visibility. Google's site move guidance says to map every old URL to a new one. GitBook's own checklist notes that answer engines cite existing URLs, so careless moves can reset that visibility.
The nine steps at a glance
Each step below prevents one specific failure. Skip the URL map, and links break. Skip the component check, and pages render with stray tags.
| Step | What you do | What breaks if you skip it |
|---|---|---|
| 1. Inventory | List spaces, variants, domains and extras | Whole sections go missing |
| 2. Export | Take a clean Git Sync snapshot | You lose your source of truth |
| 3. Record URLs | Collect every live URL and its traffic | Redirects miss real pages |
| 4. Map URLs | Pair each old URL with a new one | Readers hit 404 errors |
| 5. Convert blocks | Rebuild hints, tabs and includes | Pages show raw template tags |
| 6. Move assets | Rewrite image and file paths | Images disappear |
| 7. Redirects | Configure 301 redirects before DNS moves | Rankings and links drop |
| 8. Cut over | Point the domain at the new host | Downtime or mixed content |
| 9. Verify | Crawl, submit and monitor | Problems go unnoticed |
Step 1: Inventory what you are moving
Start with a list of everything GitBook currently serves. Count your spaces, sites, variants and custom domains, and note which pages are public and which sit behind access rules.
Then look at the files that define the structure. In a Git Sync repository, a file called SUMMARY.md controls navigation. GitBook's documentation says it builds page groups from level-two headings, and nested links become child pages. If you don't have this file, GitBook uses your folder structure for navigation. A file called .gitbook.yaml sets the root folder, and assets usually live under .gitbook/assets.
Finally, list the extras readers rely on:
- Search
- Feedback widgets
- An AI assistant
- An llms.txt file
- Any MCP endpoint
Each one needs an equivalent on the new site, or a deliberate decision to drop it.
Step 2: Export a clean snapshot with Git Sync
The most reliable export path is Git Sync. It syncs a GitBook space with a GitHub or GitLab repository in both directions. GitBook's pricing page lists Git Sync on its free plan, so you do not need to upgrade first.
Connect a repository, choose the direction from GitBook to the repository, and start the sync. You then have your pages as Markdown files, with images and files stored beside them. Treat this first export as a snapshot and never edit it.
Make sure to spot-check it before you trust it. GitBook's own checklist warns that custom components such as tabs, callouts and expandable panels have no direct Markdown equivalent. An export may strip them or emit tags.
If Git Sync is not an option, you still have a fallback. Many GitBook sites serve a Markdown version of each page when you append .md to the page URL. Check whether yours does, then script a crawl of the published pages.
Step 3: Record every live URL
Your redirect map starts with the real list of public URLs. Published URLs can differ from file paths, so the repository alone won't give you the full picture. Pull them from your sitemap, analytics and server logs, as Google recommends, plus a crawl of the live site. Google also says to include images, videos, CSS and JavaScript files, and docs sites often serve hundreds of embedded assets that readers and search engines reach directly.
Add two more columns while you are there: monthly traffic for each URL, and whether it appears in AI answers. To find out, ask a few key questions in ChatGPT and Perplexity and note which of your URLs they cite.
Those cited URLs deserve the strictest treatment. A URL that never changes needs no redirect and carries no risk, so keep them identical wherever you can.
Step 4: Map each old URL to a new one
Create a spreadsheet with three columns: old URL, new URL and action. The best outcome is a row where the old and new URLs match. Those rows need no redirect at all.
Keep the same paths when the destination allows it. If your docs are on a domain you own, you can keep that domain too. Pageloop supports this by letting you point your existing domain at it.
| Old URL | New URL | Action |
|---|---|---|
| /docs/getting-started | /docs/getting-started | Keep, no redirect |
| /docs/guides/sso-setup | /docs/security/sso | 301 redirect |
| /docs/Release-Notes | /docs/release-notes | 301 redirect, normalize case |
| /docs/v1/legacy-api | /docs/api | 301 redirect to closest page |
Point every old URL at its closest equivalent, never at the home page. Google recommends not sending unrelated pages to the home page. When a page has no successor, an honest error page beats a misleading redirect.
Letter case can catch you out. GitBook resolves URLs case-insensitively, according to its documentation, so old links may use any mix of upper and lower case. Many web servers treat those as different pages, which is why the map above lowercases every path. Test both spellings after you switch.
Redirect chains cause a similar problem. A redirect that hops twice slows readers down and weakens the signal to search engines, so point each old URL straight at its final destination.
Step 5: Convert components and formatting
Migrations rarely lose content, but they often mess up the formatting. GitBook stores special blocks in Markdown as template tags. Hints, tabs, code blocks, page links, includes and API blocks each appear as a tag in the export.
| GitBook block | Common destination equivalent |
|---|---|
| Hint | Callout or admonition |
| Tabs | Tabs component |
| Expandable section | Accordion |
| Code block with a title | Fenced code block |
| Content reference | Standard Markdown link or card |
| Include (reusable content) | Shared snippet or inline text |
| Embed | Link or embed component |
| OpenAPI block | API reference built from the OpenAPI file |
Component names differ by platform. Pageloop's hosted docs use MDX with built-in components such as cards, steps, tabs and accordions, and other platforms offer similar sets under their own names.
These two checks will help you catch most conversion problems:
- Test a sample first. GitBook's own checklist advises it. Pick pages with tabs, nested lists, embeds and long tables, since those are where conversions break.
- Search for leftover tags. Any {% left in the converted files shows up as literal text on the new site.
The editing workflow matters as well. If non-engineers write most of your docs, choose a destination with a visual editor.
Step 6: Move images, files and screenshots
In a Git Sync repository, images live under .gitbook/assets and pages reference them by relative path. Move the folder, then rewrite each path so it resolves on the new site, since broken relative paths are one of the most common bugs after a move. While you're there, keep descriptive file names where you can and carry alt text across. Search engines and screen readers both rely on it, and it's easy to lose in a bulk move.
A migration is also the right moment to audit screenshots. Pages you moved unchanged may show an interface that shipped several releases ago. This guide on how to find and fix outdated screenshots walks through the audit.
Step 7: Configure redirects before the domain moves
Set up redirects on the new host, or at your CDN or web server, before you change DNS. Use server-side 301 or 308 redirects. Google recommends server-side redirects because it interprets them most reliably.
Avoid JavaScript redirects and delayed meta refreshes for permanent moves. Google says it may read a delayed meta refresh as temporary. MDN's redirect guide explains that 301 and 308 differ in how they treat request methods.
Keep your paid GitBook plan until the move is verified. GitBook's pricing page says the free plan has no custom domain or redirects. If you plan to keep an old GitBook site alive only to redirect readers, confirm that your plan includes both.
Rebuild the AI-readable files too. GitBook generates llms.txt and Markdown versions of pages for published sites. Make sure the new platform publishes equivalents, at the same paths where possible.
Step 8: Cut over the domain
Lower your DNS time to live a day or two before the move, so you can roll back quickly if something breaks. Then point your docs hostname at the new host and confirm that SSL is issued.
Run the cutover when traffic is lightest, and keep the old site reachable on a temporary address as a reference to compare against.
Update the links you control in your app, emails, README files and support macros so they point at final URLs. MDN's guidance is to fix internal links directly, because redirects add latency.
Step 9: Verify, submit and monitor
And finally, we check if everything actually worked.
On launch day
- Crawl your old URL list against the live site. Every row should return a 301 or 308, then a 200 on the new URL.
- Check that new pages have self-referencing canonical tags, which Google recommends for moved content.
- Submit your updated sitemap in Search Console, and keep the old one for a while to watch indexing shift.
For the first two weeks
Watch the index and crawl reports. Spikes in 404 errors point at paths your map missed. Fix those rows first, because each one is a real reader.
After a few weeks
Repeat your ChatGPT and Perplexity questions and compare the cited URLs with your original list. Any citation that now points to a redirect is worth a closer look.
For at least a year
Keep redirects in place. Google recommends at least a year and suggests keeping them indefinitely, since readers arrive through old links for months after a move.
Where Pageloop fits in a GitBook migration
Pageloop is a documentation agent for fast-moving product companies. Migration from GitBook is included on every plan, and URLs, formatting and components are kept. Pageloop reads your GitBook structure, converts the docs and opens a pull request on your repository, and your team reviews it before anything goes live. If your docs are on a domain you own, they can stay on that domain.
You also have a choice about where the content lives:
- Your existing help center. Pageloop works with Intercom alongside Fin, Zendesk and Freshdesk help centers, keeping articles current without a migration.
- Pageloop's hosted docs. Pageloop hosts them from a GitHub or GitLab repository with two-way sync. They launched on 26 August 2026, so they are a newer option. The editor is visual, so non-engineers never touch Markdown, and engineers can review the same changes in Git.
Pageloop's Starter plan costs $150 a month billed yearly, or $180 billed monthly, and covers one product and up to 100 articles. Pro costs $500 a month billed yearly, or $600 billed monthly, and adds unlimited articles and automatic screenshot refresh. Every plan includes unlimited members and a 30-day free trial with no card to start. See the pricing and plans for current figures.
GitBook's pricing page lists extra users at $12 a month billed yearly, or $15 billed monthly (checked 1 December 2026), on top of a per-site price. Pageloop prices on docs volume and sources watched, so adding a contributor adds no cost.
Pageloop is built for customer-facing docs that change with every release. If your docs are developer API reference only, a developer docs platform may suit you better.
A migration fixes where your docs live, not whether they stay accurate. In GitBook's State of Docs 2026 survey, 30% named keeping docs in sync with the product as their biggest workflow challenge, and only 24% track doc freshness. Keeping docs in sync is the job Pageloop's agent takes on after cutover. It watches code, tickets and Slack threads for product changes, decides which articles are affected and drafts the fixes, including fresh screenshots. Nothing is published without approval.
Not sure whether to stay or move? Our comparison of GitBook alternatives lays out the options side by side.
Questions teams ask before leaving GitBook
Will I lose search rankings if I migrate off GitBook?
Not if you map and redirect every URL. Rankings can dip briefly while search engines recrawl your pages. Server-side 301 redirects and a submitted sitemap shorten that window.
Can I keep the same domain?
Yes, if your docs are on a domain you own. You change where the hostname points, not the hostname itself. Plan the DNS change carefully and lower the time to live first.
How long does a GitBook migration take?
It depends on your page count and how many custom components you use. A small site with simple pages is a short project. A large site with hundreds of tabs and embeds needs a pilot first.
What happens to my GitBook variants and versions?
Treat each variant as its own migration unit. Export and convert one variant first, review it, then move on to the next. Recreate any version switcher on the new platform.
Do I need to learn Markdown and Git?
Not if you pick a destination with a visual editor. Pageloop's hosted docs include one, and engineers can review the same changes in Git. Teams that already work in pull requests can keep doing so.
Should I migrate everything at once?
Often no. Move one space or section, verify it, then continue. Keep GitBook live until traffic has moved.
The short version of a safe migration
A safe migration comes down to three habits:
- Map every URL before you touch the content.
- Convert and test components on a sample.
- Verify redirects with a crawl after cutover.
Nine steps look like a lot, but each prevents a specific failure. Skipping the URL map breaks links, and skipping the component check breaks pages. Skipping the crawl hides both.
Planning a move off GitBook? Book a Pageloop demo and bring your current docs. Migration is included on every plan, with a 30-day free trial and no card to start.









