Simple, free and online. Create, without error, your .htaccess file.
Fill the options and push "generate" button in order to get your .htaccess file. The copy and paste the content into your .htaccess file. Remember, this file must be in the root of your site.