I am trying to configure a reverse proxy from my Netlify-hosted main website (baselit.ai) to my Ghost blog, which is hosted at baselit.ghost.io
. I’m using Netlify redirects to handle the routing of requests to the blog subdirectory (/new-blog
) to the new blog.
I have created a netlify.toml
file with the following configuration:
[[redirects]]
from = "/new-blog/*"
to = "https://baselit.ghost.io/:splat"
status = 200
force = true
headers = {X-Forwarded-Host = "baselit.ai"}
[[redirects]]
from = "/new-blog"
to = "https://baselit.ghost.io/"
status = 200
force = true
headers = {X-Forwarded-Host = "baselit.ai"}
I am not able to get this to work. I have taken the following troubleshooting steps:
- Cleared Netlify cache.
- Reviewed the deployment logs in the Netlify dashboard, but did not find any errors related to the reverse proxy setup. I can see that 2 new redirect rules were deployed.
- Tested the configuration on multiple browsers to rule out local caching issues.
Am I missing something?