Fixed duplicate content issue with mod_rewrite

Now all requests for: http://www.${HTTP_HOST}
go to:  http://${HTTP_HOST} and
all requests for: index.*
go to: http://${HTTP_HOST}

in summary:
-the trailing slash is gone,
-you can only get to the index page at the original hostname no matter
what the extension is

*if you wanted this to be extension specific change:
-RewriteCond %{REQUEST_URI} /index\.(.+)$
-RewriteRule ^(.*?)(index\.)?(.+)?$ http://%{HTTP_HOST}$1 [NE,R=301,L]

to: (ext = file_extenstion) -separated by | for multiples
+RewriteCond %{REQUEST_URI} /index\.(ext|ext|ext)$
+RewriteRule ^(.*?)(index\.)?(ext|ext|ext)?$ http://%{HTTP_HOST}$1
[NE,R=301,L]

so you could have: (htm|html|php) where (ext|ext|ext) is