That code in my ebook is for a .htaccess file, not a html file. And you need to be running your website on a linux server in order for it to work, NOT windows. Your best bet is to contact your hosting provider about your problem, and they should be able to help you out.
DISCLAIMER: All posts on this forum express the views and opinions of the author only, not the owners, staff or advertisers, hence we will not be held liable.