Writing redirect rules for api on a specific port

Hi!

I have set up my personal website with netlify and in one page I need to call an api that doesn’t support HTTPS.

I found this when I was looking for solutions: Disabling forced SSL · Issue #158 · netlify/cli · GitHub

The api call needs to from port 8084, I tried the following redirect rule but it doesn’t seem to work.
/api/* http://site:8084/api/:splat 200!

How should I write my redirect rules if it redirects to a specific port?

Hi, @cqx931, there is no way to specify a non-default port in a redirect rule. For HTTP port 80 will always be used and for HTTPS port 443 is always used.

If there are other questions, please let us know.