Autoredirect to WebApp and port truncation (for proxy)