If your knowledge base is in a subfolder of your website, rather than a subdomain, this is better for SEO, and your knowledge base can look more 'integrated' in your website. Luckily, setting up for this to happen with Helpjuice only takes a few minutes if you're using NGINX or Apache for your server.
An example of this in action would be: https://x10hosting.com/support/
To make Helpjuice run in a subdirectory (subdir) on your site, you may copy the code below, the instructions are as follows
- Determine whether you are using Apache or Nginx
- Copy the correct code (if you are using Apache, use the Apache code, etc.)
- Make sure to replace all parts marked in yellow with your data. Red data is optional and will only change if you want it somewhere other than / help /
- Paste the code into your server configuration file
- Restart your server
If you are using Apache and want to run it on / help /:
First, make sure you have enabled the two required modules:
sudo a2enmod proxy sudo a2enmod proxy_http
Restart Apache to load your new modules and add the following configuration:
ProxyPass "/ help" "http://yourAccount.helpjuice.com/" ProxyPassReverse "/ help" "http://yourAccount.helpjuice.com/"
If you are using NGINX and want to run it on / help /
upstream your account-lb { server yourAccount.helpjuice.com fail_timeout = 0; } 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 $ proxy_add_x_forwarded_for; proxy_pass http: // yourAccount-lb / $ 1 $ is_args $ args; proxy_read_timeout 90; proxy_http_version 1.1; } }