Running on different port than 443: Disable redirect to nonport URL

You cant prevent that redirect.

If you can’t publish on the standard ports, then it won’t work at all. Your choices here are to use a server where :80/443 are available, or to pick an alternative discussion platform.