Redirections and password protection on web pages

I would like to know how to redirect to an external website using .htaccess file. Is it possible?
Also, I would like to know how to protect a web page using .htpasswrd file.
Thanks. (Sorry for my English).

See “Security Tab” on 000webhost.com under Settings

I was looking for an alternative way, using .htpasswrd and .htaccess on website code.
Thanks anyway.

You could give it a go, probably would work fine?