To set up a redirect, you need to add the given lines to a text formatting program (such as Notepad, WordPad, etc.) and save the file as .htaccess, or add the lines to an existing .htaccess file on the server.
The file must be uploaded via FTP to the folder named htdocs.