I have a blog project created at https://barkibu-content.webflow.io/, however, I want to be able to display it under my own domain, which would be barkibu.com, so that when browsing to barkibu.com/blog it loads the information hosted at https://barkibu-content.webflow.io/.
To do this I have made a local reverse proxy in Ruby on Rails using the rack-reverse-proxy gem, as shown in this
config.middleware.insert(0, Rack::ReverseProxy) do reverse_proxy_options preserve_host: true # Add a reverse proxy rule for the /blog route reverse_proxy /^\/blog(\/.*)$/, 'https://barkibu-content.webflow.io/$1' end
The problem I am facing is that when navigating to the following URLs I am encountering the following behaviors:
- localhost:3000/blog → It loads the content of https://barkibu-content.webflow.io/ and keeps the original host (localhost:3000)
- localhost:3000/blog/post/cupon-de-descuento-de-barkibu → loads the content of Cupón de descuento Barkibu de 25€, however, it no longer maintains the original host and when I navigate to this URL both from an internal link or by typing it directly into the browser, a 301 redirection occurs from localhost:3000/blog/post/cupon-de-descuento-de-barkibu to https ://barkibu-content.webflow.io/post/cupon-de-descuento-de-barkibu.
This happens in all the pages and subdirectories of my Webflow project, except in the root directory, which does keep the host, when I want it to keep the host in all the pages. Is this happening due to some kind of Webflow limitation or do you see something misconfigured in my code?
Here is my site Read-Only: LINK
(how to share your site Read-Only link)