Don't add portnumber when restarting with reverse proxy enabled

Redirect to the base url (without the port) when using a reverse proxy during restarts.

So redirect to "https://sickbeard.example.com/home"  instead of "https://sickbeard.example.com:8081/home", which would result in a 'not found'.