How to have a WP blog show as a subdirectory on Webflow

Hi there,

My current situation is: (the main site) is hosted on Webflow. Main reason is because Webflow is design friendly for our designers

We want to create a blog (subfolder) However, we want our blog to be hosted on WordPress since it is friendly for our editors who maintain the blog content.

Is it possible and what is the best way to implement this? I have been trying to research about this but the only thread I found was 3 years ago How to add Subfolder - with no solution. Just hope things have changed that allow us to have the main site hosted on WF and a subfolder being hosted on WP.

Looking forward to your help


You would need to use a subdomain, like You can redirect /blog to but you won’t be able to serve the wordpress site from a subdirectory since it cannot be hosted on webflow.

Thanks for your answer @webdev I was advised that we can interfere with the CDN setup. The logic is

At the domain level ( (on Webflow), we create 2 subdomains so that the BLOG can be hosted on WP . These 2 subdomains are meant not for Users to see.

(1): : served as a mirror site of the
(2): served as a blog that is hosted on WordPress

Then we set some rules for the above 2 subdomains : This is what users see

(1) What users see will be
(2) what users see will be

Seems like an OKAY solution. However, one problem arises is the mirror site of the main site is indexed on Google, which we dont want. We tried to control that by setting up disallow on robots.txt file. However, whatever changes we make on the mirror site would affect directly the main site

Wondering whether there is some tips to hack around this .


I think the only way around this would be to reverse proxy the whole site and then configure the the /blog to be a different resource. It may be possible with cloudflare, but you would not be able to use SSL on webflow, that would have to be enabled on CF only. Service workers could come into play. Normally I am in control of the hosting so no limitations.

You would have to probably build out a test to confirm.

@clareseos I remembered an article about using cloudflare’s service workers as a way to pull this off, just needed to find it. Here you go.

We did this over on our site and it’s been working great. While, you do have a mirrored domain, we haven’t had any issues with Google picking it up and indexing it. I wrote a guide on how to make this work using Cloudflare Workers:


Thanks for sharing this good workup. This will save others a bunch of time that have a similar requirement.

Hi, firstly thank you @liranco for the great write up. I’ve setup my domain as recommended. I’m facing some issues with 301 redirects however. I believe these come from Webflow. Here is what I observe:

I have a project with as the only added custom domain. It’s not set as default. I am using a proxy (cloudflare worker) running at, which forwards the request to and responds to the user on behalf. However Webflow seems to be responding to the proxied requests with a 301 redirect to

If I change the proxy to forward to, it proxies correctly but then the page gets Webflow branding.

If I try to request with any browser, I get a 301, but if I use something like Postman, then it responds with 200 as I would like. :man_shrugging:

Other things I’ve tried without success:

  • override request before sending to webflow to rewrite the URL
  • override request before sending to webflow to rewrite the host value in headers

Any of you has an idea what might be happening?

Thank you,

Hi Thibaut -

Can you post your code that’s causing this?


Sure, thanks for your time.

The minimal version which gives me a 301 is as follow:

function handleRequest (event) {
  const req = event.request
  const url = new URL(req.url)
  const proxyTo = '' + url.pathname
  return fetch(proxyTo, req)

Then I tried to modify the request to fake the requested host, but same result:

function handleRequest (event) {
  const req = event.request
  const url = new URL(req.url)
  const proxyTo = '' + url.pathname

  // get around 301 redirects from webflow
  const proxiedRequest = new Request(proxyTo, req)
  proxiedRequest.headers.set('host', '')

  return fetch(proxyTo, proxiedRequest)