Replaced URLs that contain '/login/' with '/internallogin/' by running: for file in *.{php,html}; do sed -i 's|/login/|/internallogin/|g' index_form.html; done
Stopped alternateloginurl and corrected url returned by get_login_url().