How to redirect certain pages by .htaccess

Redirect certain pages

[php]
Redirect 301 /oldpage.html http://www.yoursite.com/newpage.html
Redirect 301 /oldpage2.html http://www.yoursite.com/folder/
[/php]