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 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* or* in the route input, where 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!


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?