The 301 redirect in the project settings (doc) doesn’t accept and redirect
Old path: /oldurl
Redirect to path: https://www.example.com/oldurl
POST request to
/oldurl returns a 405 http error instead
curl -L -XPOST [WEBFLOW_URL_HERE]/oldurl returns
<head><title>405 Not Allowed</title></head>
<center><h1>405 Not Allowed</h1></center>
Is this intended? Since I expect the destination URL to be the one to determine which methods it accepts
Is there a workaround for this?
No not that I’m aware of. But I’m also not certain where you’d use it. On Webflow’s hosting, you don’t have the ability to create HTTP POST handlers, and any external POST method recipients you would just target directly from e.g. a form.
Did you work out how to do this?
We are running into the same problem. We have traffic coming to our current site using the POST method. We are in the process of splitting our site into 2 pieces. We want to redirect the traffic for certain URLs away from the Webflow site back to our other site. This works fine for GET but POST returns a 405 instead of doing the redirect.
Hey Andrew, your only option there is likely to setup a reverse proxy, detect and route those POST requests separately.
The forum has a lot of posts with tutorials on how to setup reverse proxies on various platforms including Cloudflare workers.
Thanks Michael. I’ll take a look at those posts.