HelpDocs makes it easy to restrict access to your docs to logged in users. This way, when a user visits your docs (on your HelpDocs subdomain or custom domain) they'll be redirected to the regular login page instead.
- Log in to HelpDocs at
<your-subdomain>.helpdocs.io/app - Go to Settings > Sign-in & access
- Under Who can read your help center, choose Only people who sign in
- Hit Save changes
Now your frontend knowledge base will only be accessible to users that have logged in. Remember, you'll now need to invite users to your account, or set up Single Sign On, before they're able to view your docs.
Want them to go straight to your SSO or your own app instead of the login page? Fill in Send the sign-in page somewhere else under Sign-in page on the same screen. Your team can still use /login?hd_login=1.
Sending Signed-Out Readers Somewhere Else
If only some of your content is restricted, signed-out readers who hit it see a 404 page with a message to say so. To send them to your SSO or your own page instead:
- Head to Settings > Sign-in & access
- Under Sign-in page, find Signed-out readers on a restricted article
- Enter where they should go: a path like
/login/oidcor/login/saml2, or a full URL starting withhttps:// - Hit Save changes
This covers restricted articles and restricted categories. We add the page they asked for to the address as forward, so your sign-in flow can bring them back to it. A signed-in reader who doesn't have access still sees the 404 page.
/login itself: saving that leaves the redirect turned off.