Use the -L flag as below.

curl -L google.com