Redirection from one page to another using .htaccess

If you want to redirect one page to another page,  then add the following code in the .htaccess file  in one line :

[email protected][#] vi  .htaccess
=================================================

redirect 301 /oldfile.htm   http://www.domain.com/newfile.htm
=================================================

That’s all this will do it.