adding root URL redirect, HTTPS detection through proxy