The -L flag instructs cURL to follow any redirect so that you reach the eventual endpoint.

curl -L google.com