Skip to content
Hypamoon

GitBook redirect for each dead URL, monthly: Send visitors who land on an old GitBook address to the page they were after.

Old links to your GitBook site that land on a 404 page? Each month a list of those addresses with a page to send them to, added as a redirect after your yes.

Example

A monthly list of old addresses on my GitBook site that end on a 404, with the best matching page, and a redirect for each one I approve.

404 addresses in October

Old addressVisitsSend to
/v1/getting-started312/guides/quickstart
/api/auth-tokens148/api/authentication
/faq/billing57/account/invoices

Example data, after your yes per line

  • On the first of the month you get a list of addresses on your site that returned a 404 last month, ordered by visits, each with the page that matches best and the sites that link to it.
  • After your yes, a redirect is added for each line you tick, and the next list shows whether the visits stopped.

From your GitBook account As a list

Paste this in your chat

Your chat builds it and runs it every time, on your own GitBook data. No account needed to try.

The sentence

With Hypamoon, on the first of every month, list the addresses on my GitBook site that returned a 404 last month, ordered by visits, with the page that matches each one best and the sites that send visitors there. After my yes, add a redirect for each line I tick and show next month whether those visits stopped.

Hypamoon not in your chat yet? The button adds it first, without an account, and then opens your chat with this sentence.

How it goes today

  1. Run the curl and jq steps from the GitBook guide each month to list the 404 addresses.
  2. Look up the right GitBook page for each old address and type the redirect in Settings.
  3. Wait for a customer to send a link that no longer opens a GitBook page.

How it can go

On the first of the month you get a list of addresses on your site that returned a 404 last month, ordered by visits, each with the page that matches best and the sites that link to it. After your yes, a redirect is added for each line you tick, and the next list shows whether the visits stopped.

What you need

What GitBook shares
GitBook has a guide for building a monthly report of addresses that returned a 404 from the analytics events, with the command line. Its own findings view with suggested redirects is in beta on the Ultimate site plan.
Access
You paste your GitBook key in the portal, never in the chat.
Your key
You create a personal access token in the Developer settings of your own GitBook account, read only for reports or read and write when something is written back. It can do what your account can do, and it stays yours until you delete it. Analytics come from published sites.