US English (US)
BS Bosnian

Contact Us

If you still have questions or prefer to get help directly from an agent, please submit a request.
We’ll get back to you as soon as possible.

Please fill out the contact form below and we will reply as soon as possible.

  • Book a Demo
  • Product Updates
  • Contact Us
English (US)
US English (US)
BS Bosnian
  • Home
  • Getting Started

How to Run Your Knowledge Base on a Subdirectory (e.g. /help)

Learn how to configure your server to load Helpjuice from a subdirectory, creating a more integrated experience for your users.

Written by Emil Hajric

Updated at March 28th, 2025, by Guilherme Arantes

Contact Us

If you still have questions or prefer to get help directly from an agent, please submit a request.
We’ll get back to you as soon as possible.

Please fill out the contact form below and we will reply as soon as possible.

  • Getting Started
    Users Accessibility New to Helpjuice? Start Here Content Management Multiple Languages/Translations & Localization Multilingual Knowledge Bases Analytics Video Tutorials
  • Customization
    Customization Guides
  • API V2
  • API V3 and Webhooks
  • Article Editor
  • Billing / Subscription
  • Authentication
  • Pricing
  • Swifty AI Chatbot
  • Swifty AI Helpbar
  • What's New
+ More

Table of Contents

Set Up Your Server Apache Setup Example NGINX Setup Example Troubleshooting & Authentication Tips Updating Your Knowledge Base Templates

Hosting your Knowledge Base on a subdirectory instead of a subdomain can improve SEO and create a more seamless experience between your website and Knowledge Base. Here's a comparison using yourDomain.com and /help as the subdirectory:

Description URL Pattern
Regular Helpjuice subdomain https://yourAccount.helpjuice.com
Custom domain on a subdirectory https://yourDomain.com/help

Please note that in the example above, yourDomain and help are defined by you.

If you’re using Apache or NGINX, you can configure your server to load your Knowledge Base from a subdirectory. This guide provides step-by-step instructions to help you do that smoothly.

Set Up Your Server

Before getting started, make sure you:

  • Use Apache or NGINX as your web server
  • Have access to your server configuration files
  • Can restart your server after applying changes

Once you're ready, follow these steps:

  1. Identify whether your server uses Apache or NGINX.
  2. Copy the appropriate configuration code from the examples below.
  3. Replace the highlighted values with your actual domain and preferred subdirectory.
  4. Paste the configuration into your server’s configuration file.
  5. Restart your server to apply the changes.
  6. Update your Knowledge Base templates.

Apache Setup Example

If you're using Apache, first enable the required modules:

sudo a2enmod proxy
sudo a2enmod proxy_http

Then restart Apache and add the following configuration to your virtual host or site config:

ProxyPass "/help" "https://yourAccount.helpjuice.com/"
ProxyPassReverse "/help" "https://yourAccount.helpjuice.com/"

NGINX Setup Example

If you're using NGINX, add the following configuration inside your server block:

server {
  listen 80;
  large_client_header_buffers 4 16k;
  server_name yourwebsite.com;

  location ~ ^/help/?((?<=/).*)?$ {
    proxy_set_header Host yourAccount.helpjuice.com;
    proxy_set_header X-Real-IP $remote_addr;
    proxy_set_header X-Forwarded-For yourAccount.helpjuice.com;
    proxy_pass https://yourAccount.helpjuice.com/$1$is_args$args;
    proxy_read_timeout 90;
    proxy_http_version 1.1;
  }
}

Troubleshooting & Authentication Tips

If your setup isn’t working as expected, here are a few common issues to double-check:

  • HTTP Headers: If you're rewriting requests through a proxy, make sure the Origin HTTP header is set to your Helpjuice subdomain - e.g., https://yourAccount.helpjuice.com.
  • Cookies: Some features require cookies to be passed correctly from Helpjuice to your end users. Ensure your server allows these cookies to be forwarded:
    • _helpjuice_session_v2
    • authorized_url_only_category_ids
    • authorized_kb_encrypted_url_only
    • authorized_url_only_question_id
    • current_user_language
    • segment_fields
  • Cookie Domains (Authentication): If your site runs on a different domain than *.helpjuice.com, you may need to rewrite the cookie domain in your proxy config. Refer to your server documentation for details:
    • Apache Module mod_proxy
    • NGINX Module ngx_http_proxy_module

Updating Your Knowledge Base Templates

After setting up your Knowledge Base to run on a subdirectory (like /help), some updates will be required in your templates to ensure everything functions correctly.

This includes changes to internal links, form actions, meta tags, and any custom scripts that reference URLs or paths.

For a complete list of what needs to be updated - along with examples and implementation tips - refer to the following guide: Template Changes for Subdirectory Setup 

subdirectory helpjuice

Was this article helpful?

Yes
No
Give feedback about this article

Related Articles

  • How To Move Articles To The Articles In Review Column

Copyright © 2025 - Helpjuice

Helpjuice, Inc. is a registered US Corporation, EIN # 45-2275731

Download W9
  • Help
  • Features
  • Pricing
  • About
  • Careers
  • Customers
  • Blog
  • Case Studies
  • Resources
  • Knowledge Base Examples
  • Privacy Policy
  • Terms of Service

Why is the knowledge base important?

With a knowledge base, you can allow your customers to self-help themselves, thus reducing your customer support by up to 60%. Furthermore, you can also have your team get instant answers to the questions they need without having to email themselves all using knowledge base software.

What is the purpose of a knowledge base?

The purpose of knowledge base software is to allow you to host your knowledge base/corporate wiki in one centralized 'hub'. Both your customers, and employees can now access information within seconds!

Made with from Miami, Bosnia, Morocco & Brasil

+1 (833) 387 3877 support@helpjuice.com
Expand