⚑️ Build your own docs with Notaku

Hosting on /docs or /blog with Cloudflare

This feature is available in the Business Pro plan ($99 plan).
This feature is only enabled for blog and docs websites for the following subdirectories
  • /docs
  • /help
  • /blog

Enable the proxy option in Cloudflare DNS (the orange icon)

To host on a subdirectory you will need to create a Cloudflare worker to rewrite traffic from a subdirectory to Notaku websites. To do this you need to have the orange icon (the proxy option) enabled for your domain.
Image without caption

Copy the code to paste in Cloudflare workers

The code changes for every website, copy the exact code the Notaku dashboard will show you.
  1. Click the button How to host on /subdirectory
    1. Image without caption
  1. Copy the code snippet, it will be used lated in the Cloudflare worker code editor
    1. Image without caption

Create the Cloudflare worker

  1. Go to cloudflare.com and log in
  1. Go to the Workers tab
    1. Image without caption
  1. Click create service
  1. Name your service with something like Notaku {websiteName} and create it
    1. Image without caption
  1. Click the Quick edit button and paste the Notaku code
    1. Image without caption
      Image without caption
  1. Click the Triggers tab
    1. Image without caption
  1. Click add route
    1. Image without caption
  1. Write example.com/docs* or example.com/blog* in the route input, where example.com is your domain and /docs is the subdirectory you want to use
    1. Image without caption
  1. Save and try out your new website in a subdirectory!

FAQ

How much time does it take for the changes to take effect?
Can i host any website in a subdirectory this way?
Do i need Cloudflare or does this work with any other DNS provider?
Why is the orange icon (proxy option) required?
Powered by Notaku