No, to rewrite from / to index.php you change last line to
[code:1:f3efa68fe3]
RewriteRule ^/$ http://www.yourdomain.com/index.php [R=permanent]
[/code:1:f3efa68fe3]
the other two lines (rewritecond+rewriterule) are to make domain canonical (i.e., redirect domain.com/anything ->
www.domain.com/anything).
and yes, you would put that in .htaccess that is in your domain's documentroot.
np.