Hi, @Ahmed_Nakadi, and welcome to the Netlify community site.
I think I see a possible issue based on the rule posted above. You cannot set a port in a redirect. We will only redirect to port 80 for HTTP and to port 443 for HTTPS requests.
Are you trying to redirect to a different TCP port? If so, that isn’t possible at Netlify.
We’d be happy to enter a feature request for this if you are interested though. If there are other questions about this also, please let us know.
Hello Luke, yes it would be awesome if you would ever add that feature. I’m slowly getting in love with JAMSTACK and this would help me a lot. And I think that I am not the only one.
But if you guys have any other idea how to host a REST API on your own VPS server or on herokuapp and proxy it through the netlify’s CDN ( i hope i understand it correctly ), then hit me up please