Accessing knowledge base under a subdirectory of a custom domain
Learn how you can access your knowledge base under a subdirectory of a custom domain you own
Updated: January 5, 2024
2 mins read
AssistFlare allows you to access your knowledge base under a subdirectory of your custom domain. If you have you main site at example.com and want to have your knowledge base accessible at example.com/docs - you can do that using the Custom Domain with SubFolder
To use a custom domain, from your knowledge base dashboard:
- Navigate to the
Domainlink under the Settings section from the left navigation menu.
- In the Custom Domain Type section, choose
Custom Domain with Subdirectoryas your type.

- This will show the
Custom Domainand theCustom Domain Subdirectorysections.
- In the Custom Domain field, enter the name of the custom domain under which you want to have the subdirectory for your knowledge base

- In the Custom Domain Subdirectory field, enter the folder name without any slashes in the name and click on
Save Settingsto save your configuration.

Additional Configuration
To complete the setup for hosting your knowledge base on a subdirectory of your custom domain, you need to setup a reverse proxy on your domain subdirectory path which you defined in step 5 above.
Below are code configs for setting up a reverse proxy popular servers.
Next.js
If you are using Next.js on your main site hosted for e.g. at example.com, you can setup a reverse proxy on a
docs subdirectory using rewrites as shown below:JavaScript
// next.config.js
const nextConfig = {
async rewrites() {
return [
{
source: "/docs/:path*",
destination: "https://example.assistflare.com/:path*",
},
];
},
}
module.exports = nextConfigWas this resource helpful?