I've got XAMPP running on port 80, and a web app on port 8000. I need a rewrite rule so that requests coming in on port 80 are sent to the web app on port 8000, without the browser noticing.
It seems like a fairly simple and obvious thing to do, but I simply cannot figure it out. Usually I get some kind of error message (400 Bad Request, 500 Server Error). The best attempt gave a browser redirect, which isn't what I need, but I figured adding a [P] or maybe [PT] flag would do it, but that resulted in an error.
So what's the correct way to do this?