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